blob: 2c44a93822ecfda2fff3ce2bf0af0230b294a587 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_ISSUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_ISSUE_H_
#include "third_party/blink/public/mojom/devtools/inspector_issue.mojom-blink.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/wtf/forward.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
class CORE_EXPORT InspectorIssue final
: public GarbageCollected<InspectorIssue> {
public:
InspectorIssue() = delete;
InspectorIssue(mojom::blink::InspectorIssueCode code,
mojom::blink::InspectorIssueDetailsPtr details);
~InspectorIssue();
static InspectorIssue* Create(mojom::blink::InspectorIssueInfoPtr info);
mojom::blink::InspectorIssueCode Code() const;
const mojom::blink::InspectorIssueDetailsPtr& Details() const;
void Trace(Visitor*) const;
private:
mojom::blink::InspectorIssueCode code_;
mojom::blink::InspectorIssueDetailsPtr details_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_ISSUE_H_