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_serv
ice.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/prefs/pref_service.h" |
13 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
14 #include "base/task_runner_util.h" | 15 #include "base/task_runner_util.h" |
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" | 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" |
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice_observer.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice_observer.h" |
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
19 #include "components/data_reduction_proxy/core/browser/data_store.h" | 20 #include "components/data_reduction_proxy/core/browser/data_store.h" |
20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" | 21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event
_store.h" |
21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" | 23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" |
23 #include "components/data_reduction_proxy/proto/data_store.pb.h" | 24 #include "components/data_reduction_proxy/proto/data_store.pb.h" |
24 #include "components/prefs/pref_service.h" | |
25 | 25 |
26 namespace data_reduction_proxy { | 26 namespace data_reduction_proxy { |
27 | 27 |
28 DataReductionProxyService::DataReductionProxyService( | 28 DataReductionProxyService::DataReductionProxyService( |
29 DataReductionProxySettings* settings, | 29 DataReductionProxySettings* settings, |
30 PrefService* prefs, | 30 PrefService* prefs, |
31 net::URLRequestContextGetter* request_context_getter, | 31 net::URLRequestContextGetter* request_context_getter, |
32 scoped_ptr<DataStore> store, | 32 scoped_ptr<DataStore> store, |
33 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 33 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
34 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, | 34 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 return initialized_; | 320 return initialized_; |
321 } | 321 } |
322 | 322 |
323 base::WeakPtr<DataReductionProxyService> | 323 base::WeakPtr<DataReductionProxyService> |
324 DataReductionProxyService::GetWeakPtr() { | 324 DataReductionProxyService::GetWeakPtr() { |
325 DCHECK(CalledOnValidThread()); | 325 DCHECK(CalledOnValidThread()); |
326 return weak_factory_.GetWeakPtr(); | 326 return weak_factory_.GetWeakPtr(); |
327 } | 327 } |
328 | 328 |
329 } // namespace data_reduction_proxy | 329 } // namespace data_reduction_proxy |
OLD | NEW |