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_bypa
ss_stats.h" | 12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_bypa
ss_stats.h" |
| 13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" |
13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" | 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" |
14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_service_client.h" | 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_service_client.h" |
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator.h" | 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator.h" |
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_dele
gate.h" | 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_dele
gate.h" |
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte
rceptor.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte
rceptor.h" |
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_muta
ble_config_values.h" | 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_muta
ble_config_values.h" |
19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" | 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" |
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" | 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" |
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" | |
23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" | 23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" |
24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" | 25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" |
26 #include "net/base/net_log.h" | 26 #include "net/base/net_log.h" |
27 | 27 |
28 namespace data_reduction_proxy { | 28 namespace data_reduction_proxy { |
29 | 29 |
30 DataReductionProxyIOData::DataReductionProxyIOData( | 30 DataReductionProxyIOData::DataReductionProxyIOData( |
31 const Client& client, | 31 const Client& client, |
32 int param_flags, | 32 int param_flags, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 return network_delegate.Pass(); | 137 return network_delegate.Pass(); |
138 } | 138 } |
139 | 139 |
140 void DataReductionProxyIOData::SetUnreachable(bool unreachable) { | 140 void DataReductionProxyIOData::SetUnreachable(bool unreachable) { |
141 DCHECK(ui_task_runner_->BelongsToCurrentThread()); | 141 DCHECK(ui_task_runner_->BelongsToCurrentThread()); |
142 if (service_) | 142 if (service_) |
143 service_->settings()->SetUnreachable(unreachable); | 143 service_->settings()->SetUnreachable(unreachable); |
144 } | 144 } |
145 | 145 |
146 } // namespace data_reduction_proxy | 146 } // namespace data_reduction_proxy |
OLD | NEW |