| 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 ed0a939f27fa9be37ba4c2d03ebbb23c653a03a7..1c0e1eb264fe796dab8abdf16d081e75cbb9e734 100644
|
| --- a/chrome/browser/net/chrome_network_delegate.h
|
| +++ b/chrome/browser/net/chrome_network_delegate.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/values.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
|
| +#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
|
| #include "net/base/network_delegate.h"
|
| #include "net/proxy/proxy_retry_info.h"
|
|
|
| @@ -37,6 +38,7 @@ class Predictor;
|
|
|
| namespace data_reduction_proxy {
|
| class DataReductionProxyAuthRequestHandler;
|
| +class DataReductionProxyEventStore;
|
| class DataReductionProxyParams;
|
| class DataReductionProxyStatisticsPrefs;
|
| class DataReductionProxyUsageStats;
|
| @@ -188,6 +190,13 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
|
| data_reduction_proxy_statistics_prefs_ = statistics_prefs;
|
| }
|
|
|
| + // |data_reduction_proxy_event_store_| must outlive this
|
| + // ChromeNetworkDelegate.
|
| + void set_data_reduction_proxy_event_store(
|
| + data_reduction_proxy::DataReductionProxyEventStore* event_store) {
|
| + data_reduction_proxy_event_store_ = event_store;
|
| + }
|
| +
|
| void set_on_resolve_proxy_handler(OnResolveProxyHandler handler) {
|
| on_resolve_proxy_handler_ = handler;
|
| }
|
| @@ -227,6 +236,14 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
|
| // responsible for deleting the returned value.
|
| base::Value* SessionNetworkStatsInfoToValue() const;
|
|
|
| + // Creates a Value summary of data reduction proxy related information:
|
| + // - Whether the proxy is enabled
|
| + // - The proxy configuration
|
| + // - The state of the last canary response
|
| + // - A stream of the last data reduction proxy related events.
|
| + // The caller is responsible for deleting the returned value.
|
| + base::Value* DataReductionProxyInfoToValue() const;
|
| +
|
| private:
|
| friend class ChromeNetworkDelegateTest;
|
|
|
| @@ -343,6 +360,10 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
|
| data_reduction_proxy_auth_request_handler_;
|
| data_reduction_proxy::DataReductionProxyStatisticsPrefs*
|
| data_reduction_proxy_statistics_prefs_;
|
| + // |data_reduction_proxy_event_store_| must outlive this
|
| + // ChromeNetworkDelegate.
|
| + data_reduction_proxy::DataReductionProxyEventStore*
|
| + data_reduction_proxy_event_store_;
|
|
|
| OnResolveProxyHandler on_resolve_proxy_handler_;
|
| ProxyConfigGetter proxy_config_getter_;
|
|
|