| Index: chrome/browser/net/chrome_network_delegate.h
|
| diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
|
| index 3717a33737ec86115b73275e4a02f14835812db7..43dbc57e871498ee91649ca92ec88fa3a94dcf1f 100644
|
| --- a/chrome/browser/net/chrome_network_delegate.h
|
| +++ b/chrome/browser/net/chrome_network_delegate.h
|
| @@ -15,7 +15,6 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/values.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
|
| #include "net/base/network_delegate_impl.h"
|
|
|
| #if !defined(OS_IOS)
|
| @@ -42,6 +41,10 @@ namespace content_settings {
|
| class CookieSettings;
|
| }
|
|
|
| +namespace data_usage {
|
| +class DataUseAggregator;
|
| +}
|
| +
|
| namespace domain_reliability {
|
| class DomainReliabilityMonitor;
|
| }
|
| @@ -120,6 +123,10 @@ class ChromeNetworkDelegate : public net::NetworkDelegateImpl {
|
| domain_reliability_monitor_ = monitor;
|
| }
|
|
|
| + void set_data_use_aggregator(
|
| + data_usage::DataUseAggregator* data_use_aggregator,
|
| + bool is_data_usage_off_the_record);
|
| +
|
| // Binds the pref members to |pref_service| and moves them to the IO thread.
|
| // |enable_referrers| cannot be NULL, the others can.
|
| // This method should be called on the UI thread.
|
| @@ -155,6 +162,8 @@ class ChromeNetworkDelegate : public net::NetworkDelegateImpl {
|
| void OnResponseStarted(net::URLRequest* request) override;
|
| void OnNetworkBytesReceived(const net::URLRequest& request,
|
| int64_t bytes_received) override;
|
| + void OnNetworkBytesSent(const net::URLRequest& request,
|
| + int64_t bytes_sent) override;
|
| void OnCompleted(net::URLRequest* request, bool started) override;
|
| void OnURLRequestDestroyed(net::URLRequest* request) override;
|
| void OnURLRequestJobOrphaned(net::URLRequest* request) override;
|
| @@ -180,10 +189,6 @@ class ChromeNetworkDelegate : public net::NetworkDelegateImpl {
|
| const GURL& target_url,
|
| const GURL& referrer_url) const override;
|
|
|
| - void AccumulateContentLength(
|
| - int64 received_payload_byte_count,
|
| - int64 original_payload_byte_count);
|
| -
|
| scoped_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_;
|
|
|
| void* profile_;
|
| @@ -214,6 +219,11 @@ class ChromeNetworkDelegate : public net::NetworkDelegateImpl {
|
|
|
| bool experimental_web_platform_features_enabled_;
|
|
|
| + // Aggregates and reports network usage.
|
| + data_usage::DataUseAggregator* data_use_aggregator_;
|
| + // Controls whether network usage is reported as being off the record.
|
| + bool is_data_usage_off_the_record_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
|
| };
|
|
|
|
|