Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1647)

Unified Diff: net/base/layered_network_delegate.h

Issue 2891133003: Reporting: Wire ReportingDelegate into ChromeNetworkDelegate (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index 1666d86a6b5072f4161ade284e226b9c2b08dd1c..562ca0f7708e16c62e986d61defa75bf447ad0f4 100644
--- a/net/base/layered_network_delegate.h
+++ b/net/base/layered_network_delegate.h
@@ -87,6 +87,16 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
const GURL& target_url,
const GURL& referrer_url) const final;
+ bool OnCanQueueReportingReport(const url::Origin& origin) const final;
+
+ bool OnCanSendReportingReport(const url::Origin& origin) const final;
+
+ bool OnCanSetReportingClient(const url::Origin& origin,
+ const GURL& endpoint) const final;
+
+ bool OnCanUseReportingClient(const url::Origin& origin,
+ const GURL& endpoint) const final;
+
protected:
virtual void OnBeforeURLRequestInternal(URLRequest* request,
const CompletionCallback& callback,
@@ -157,6 +167,18 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
const GURL& target_url,
const GURL& referrer_url) const;
+ virtual void OnCanQueueReportingReportInternal(
+ const url::Origin& origin) const;
+
+ virtual void OnCanSendReportingReportInternal(
+ const url::Origin& origin) const;
+
+ virtual void OnCanSetReportingClientInternal(const url::Origin& origin,
+ const GURL& endpoint) const;
+
+ virtual void OnCanUseReportingClientInternal(const url::Origin& origin,
+ const GURL& endpoint) const;
+
private:
std::unique_ptr<NetworkDelegate> nested_network_delegate_;
};
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698