| 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 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_IO_DAT
A_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_IO_DAT
A_H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_IO_DAT
A_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_IO_DAT
A_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class DataReductionProxyConfig; | 46 class DataReductionProxyConfig; |
| 47 class DataReductionProxyConfigServiceClient; | 47 class DataReductionProxyConfigServiceClient; |
| 48 class DataReductionProxyConfigurator; | 48 class DataReductionProxyConfigurator; |
| 49 class DataReductionProxyEventCreator; | 49 class DataReductionProxyEventCreator; |
| 50 class DataReductionProxyService; | 50 class DataReductionProxyService; |
| 51 | 51 |
| 52 // Contains and initializes all Data Reduction Proxy objects that operate on | 52 // Contains and initializes all Data Reduction Proxy objects that operate on |
| 53 // the IO thread. | 53 // the IO thread. |
| 54 class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate { | 54 class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate { |
| 55 public: | 55 public: |
| 56 // Constructs a DataReductionProxyIOData object. |param_flags| is used to | 56 // Constructs a DataReductionProxyIOData object. |enabled| sets the initial |
| 57 // set information about the DNS names used by the proxy, and allowable | 57 // state of the Data Reduction Proxy. |
| 58 // configurations. |enabled| sets the initial state of the Data Reduction | |
| 59 // Proxy. | |
| 60 DataReductionProxyIOData( | 58 DataReductionProxyIOData( |
| 61 Client client, | 59 Client client, |
| 62 int param_flags, | |
| 63 net::NetLog* net_log, | 60 net::NetLog* net_log, |
| 64 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 61 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 65 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 62 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 66 bool enabled, | 63 bool enabled, |
| 67 const std::string& user_agent, | 64 const std::string& user_agent, |
| 68 const std::string& channel); | 65 const std::string& channel); |
| 69 | 66 |
| 70 virtual ~DataReductionProxyIOData(); | 67 virtual ~DataReductionProxyIOData(); |
| 71 | 68 |
| 72 // Performs UI thread specific shutdown logic. | 69 // Performs UI thread specific shutdown logic. |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // The production channel of this build. | 302 // The production channel of this build. |
| 306 const std::string channel_; | 303 const std::string channel_; |
| 307 | 304 |
| 308 base::WeakPtrFactory<DataReductionProxyIOData> weak_factory_; | 305 base::WeakPtrFactory<DataReductionProxyIOData> weak_factory_; |
| 309 | 306 |
| 310 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyIOData); | 307 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyIOData); |
| 311 }; | 308 }; |
| 312 | 309 |
| 313 } // namespace data_reduction_proxy | 310 } // namespace data_reduction_proxy |
| 314 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_IO_
DATA_H_ | 311 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_IO_
DATA_H_ |
| OLD | NEW |