OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/prefs/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_bypa
ss_protocol.h" | 11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_bypa
ss_protocol.h" |
| 12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" |
12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" | 13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" |
13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator.h" | 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator.h" |
14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_dele
gate.h" | 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_dele
gate.h" |
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte
rceptor.h" | 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte
rceptor.h" |
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" | 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" |
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" | |
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag
e_stats.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag
e_stats.h" |
19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" | 19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" |
20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" | 21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" |
22 #include "net/base/net_log.h" | 22 #include "net/base/net_log.h" |
23 | 23 |
24 namespace data_reduction_proxy { | 24 namespace data_reduction_proxy { |
25 | 25 |
26 DataReductionProxyIOData::DataReductionProxyIOData( | 26 DataReductionProxyIOData::DataReductionProxyIOData( |
27 const Client& client, | 27 const Client& client, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if (track_proxy_bypass_statistics && !usage_stats_) { | 106 if (track_proxy_bypass_statistics && !usage_stats_) { |
107 usage_stats_.reset(new DataReductionProxyUsageStats( | 107 usage_stats_.reset(new DataReductionProxyUsageStats( |
108 config_.get(), service_, ui_task_runner_)); | 108 config_.get(), service_, ui_task_runner_)); |
109 network_delegate->InitIODataAndUMA(ui_task_runner_, this, &enabled_, | 109 network_delegate->InitIODataAndUMA(ui_task_runner_, this, &enabled_, |
110 usage_stats_.get()); | 110 usage_stats_.get()); |
111 } | 111 } |
112 return network_delegate.Pass(); | 112 return network_delegate.Pass(); |
113 } | 113 } |
114 | 114 |
115 } // namespace data_reduction_proxy | 115 } // namespace data_reduction_proxy |
OLD | NEW |