Index: chrome/browser/net/chrome_network_delegate.cc |
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc |
index 84a4eb8a15a787786144526472125245c235c91f..3c363afaa6391dfe904caa418b266fed5bd2bd6e 100644 |
--- a/chrome/browser/net/chrome_network_delegate.cc |
+++ b/chrome/browser/net/chrome_network_delegate.cc |
@@ -546,6 +546,42 @@ bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
return true; |
} |
+bool ChromeNetworkDelegate::OnCanQueueReportingReport( |
+ const url::Origin& origin) const { |
+ if (!cookie_settings_) |
+ return true; |
+ |
+ return cookie_settings_->IsCookieAccessAllowed(origin.GetURL(), |
+ origin.GetURL()); |
+} |
+ |
+bool ChromeNetworkDelegate::OnCanSendReportingReport( |
+ const url::Origin& origin) const { |
+ if (!cookie_settings_) |
+ return true; |
+ |
+ return cookie_settings_->IsCookieAccessAllowed(origin.GetURL(), |
+ origin.GetURL()); |
+} |
+ |
+bool ChromeNetworkDelegate::OnCanSetReportingClient( |
+ const url::Origin& origin, |
+ const GURL& endpoint) const { |
+ if (!cookie_settings_) |
+ return true; |
+ |
+ return cookie_settings_->IsCookieAccessAllowed(endpoint, origin.GetURL()); |
+} |
+ |
+bool ChromeNetworkDelegate::OnCanUseReportingClient( |
+ const url::Origin& origin, |
+ const GURL& endpoint) const { |
+ if (!cookie_settings_) |
+ return true; |
+ |
+ return cookie_settings_->IsCookieAccessAllowed(endpoint, origin.GetURL()); |
+} |
+ |
void ChromeNetworkDelegate::ReportDataUsageStats(net::URLRequest* request, |
int64_t tx_bytes, |
int64_t rx_bytes) { |