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_; |
}; |