#include "third_party/blink/renderer/core/inspector/inspector_issue_conversion.h"
#include "third_party/blink/public/mojom/devtools/inspector_issue.mojom-blink-forward.h"
#include "third_party/blink/renderer/core/inspector/inspector_issue.h"
#include "third_party/blink/renderer/core/inspector/protocol/audits.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
std::unique_ptr<protocol::Audits::AffectedCookie> BuildAffectedCookie(
const mojom::blink::AffectedCookiePtr& cookie) { … }
std::unique_ptr<protocol::Audits::AffectedRequest> BuildAffectedRequest(
const mojom::blink::AffectedRequestPtr& request) { … }
std::unique_ptr<protocol::Audits::AffectedFrame> BuildAffectedFrame(
const mojom::blink::AffectedFramePtr& frame) { … }
blink::protocol::String InspectorIssueCodeValue(
mojom::blink::InspectorIssueCode code) { … }
protocol::String BuildCookieExclusionReason(
mojom::blink::CookieExclusionReason exclusion_reason) { … }
std::unique_ptr<std::vector<blink::protocol::String>>
BuildCookieExclusionReasons(
const WTF::Vector<mojom::blink::CookieExclusionReason>& exclusion_reasons) { … }
protocol::String BuildCookieWarningReason(
mojom::blink::CookieWarningReason warning_reason) { … }
std::unique_ptr<std::vector<blink::protocol::String>> BuildCookieWarningReasons(
const WTF::Vector<mojom::blink::CookieWarningReason>& warning_reasons) { … }
protocol::String BuildCookieOperation(mojom::blink::CookieOperation operation) { … }
protocol::String BuildMixedContentResolutionStatus(
mojom::blink::MixedContentResolutionStatus resolution_type) { … }
protocol::String BuildMixedContentResourceType(
mojom::blink::RequestContextType request_context) { … }
protocol::String BuildBlockedByResponseReason(
network::mojom::blink::BlockedByResponseReason reason) { … }
protocol::String BuildViolationType(
mojom::blink::ContentSecurityPolicyViolationType violation_type) { … }
protocol::String BuildSABIssueType(
blink::mojom::blink::SharedArrayBufferIssueType type) { … }
std::unique_ptr<protocol::Audits::SourceCodeLocation> BuildAffectedLocation(
const blink::mojom::blink::AffectedLocationPtr& affected_location) { … }
}
std::unique_ptr<protocol::Audits::InspectorIssue>
ConvertInspectorIssueToProtocolFormat(InspectorIssue* issue) { … }
}