diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/content/browser/devtools/devtools_instrumentation.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/content/browser/devtools/devtools_instrumentation.h')
-rw-r--r-- | chromium/content/browser/devtools/devtools_instrumentation.h | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/chromium/content/browser/devtools/devtools_instrumentation.h b/chromium/content/browser/devtools/devtools_instrumentation.h index e15c71b22a5..3746ac12a07 100644 --- a/chromium/content/browser/devtools/devtools_instrumentation.h +++ b/chromium/content/browser/devtools/devtools_instrumentation.h @@ -43,17 +43,24 @@ class DownloadItem; } // namespace download namespace content { -class SignedExchangeEnvelope; +class BrowserContext; class FrameTreeNode; class NavigationHandle; class NavigationRequest; class NavigationThrottle; class RenderFrameHostImpl; class RenderProcessHost; +class SignedExchangeEnvelope; class WebContents; struct SignedExchangeError; +namespace protocol { +namespace Audits { +class InspectorIssue; +} // namespace Audits +} // namespace protocol + namespace devtools_instrumentation { void ApplyNetworkRequestOverrides(FrameTreeNode* frame_tree_node, @@ -129,7 +136,7 @@ void OnRequestWillBeSentExtraInfo( int process_id, int routing_id, const std::string& devtools_request_id, - const net::CookieStatusList& request_cookie_list, + const net::CookieAccessResultList& request_cookie_list, const std::vector<network::mojom::HttpRawHeaderPairPtr>& request_headers); void OnResponseReceivedExtraInfo( int process_id, @@ -180,11 +187,33 @@ void ReportSameSiteCookieIssue( blink::mojom::SameSiteCookieOperation operation, const base::Optional<std::string>& devtools_request_id); +// This function works similar to RenderFrameHostImpl::AddInspectorIssue, in +// that it reports an InspectorIssue to DevTools clients. The difference is that +// |ReportBrowserInitiatedIssue| sends issues directly to clients instead of +// going through the issue storage in the renderer process. Sending issues +// directly prevents them from being (potentially) lost during navigations. +// +// DevTools must be attached, otherwise issues reported through +// |ReportBrowserInitiatedIssue| are lost. +void CONTENT_EXPORT +ReportBrowserInitiatedIssue(RenderFrameHostImpl* frame, + protocol::Audits::InspectorIssue* issue); + +// Produces a Heavy Ad Issue based on the parameters passed in. +std::unique_ptr<protocol::Audits::InspectorIssue> GetHeavyAdIssue( + RenderFrameHostImpl* frame, + blink::mojom::HeavyAdResolutionStatus resolution, + blink::mojom::HeavyAdReason reason); + void OnQuicTransportHandshakeFailed( RenderFrameHostImpl* frame_host, const GURL& url, const base::Optional<net::QuicTransportError>& error); +void ApplyNetworkContextParamsOverrides( + BrowserContext* browser_context, + network::mojom::NetworkContextParams* network_context_params); + } // namespace devtools_instrumentation } // namespace content |