| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // should only be called from there. | 249 // should only be called from there. |
| 250 bool GetMetricsEnabledStateOnIOThread() const; | 250 bool GetMetricsEnabledStateOnIOThread() const; |
| 251 | 251 |
| 252 void set_client_cert_store_factory_for_testing( | 252 void set_client_cert_store_factory_for_testing( |
| 253 const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { | 253 const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { |
| 254 client_cert_store_factory_ = factory; | 254 client_cert_store_factory_ = factory; |
| 255 } | 255 } |
| 256 | 256 |
| 257 bool IsDataReductionProxyEnabled() const; | 257 bool IsDataReductionProxyEnabled() const; |
| 258 | 258 |
| 259 data_reduction_proxy::DataReductionProxyIOData* |
| 260 data_reduction_proxy_io_data() const { |
| 261 return data_reduction_proxy_io_data_.get(); |
| 262 } |
| 263 |
| 259 protected: | 264 protected: |
| 260 // A URLRequestContext for media that owns its HTTP factory, to ensure | 265 // A URLRequestContext for media that owns its HTTP factory, to ensure |
| 261 // it is deleted. | 266 // it is deleted. |
| 262 class MediaRequestContext : public net::URLRequestContext { | 267 class MediaRequestContext : public net::URLRequestContext { |
| 263 public: | 268 public: |
| 264 MediaRequestContext(); | 269 MediaRequestContext(); |
| 265 | 270 |
| 266 void SetHttpTransactionFactory( | 271 void SetHttpTransactionFactory( |
| 267 scoped_ptr<net::HttpTransactionFactory> http_factory); | 272 scoped_ptr<net::HttpTransactionFactory> http_factory); |
| 268 | 273 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // ProfileIOData, and the derived class calls this method to set the | 366 // ProfileIOData, and the derived class calls this method to set the |
| 362 // channel_id_service_ member and transfers ownership to the base | 367 // channel_id_service_ member and transfers ownership to the base |
| 363 // class. | 368 // class. |
| 364 void set_channel_id_service( | 369 void set_channel_id_service( |
| 365 net::ChannelIDService* channel_id_service) const; | 370 net::ChannelIDService* channel_id_service) const; |
| 366 | 371 |
| 367 void set_data_reduction_proxy_io_data( | 372 void set_data_reduction_proxy_io_data( |
| 368 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 373 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 369 data_reduction_proxy_io_data) const; | 374 data_reduction_proxy_io_data) const; |
| 370 | 375 |
| 371 data_reduction_proxy::DataReductionProxyIOData* | |
| 372 data_reduction_proxy_io_data() const { | |
| 373 return data_reduction_proxy_io_data_.get(); | |
| 374 } | |
| 375 | |
| 376 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { | 376 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { |
| 377 return fraudulent_certificate_reporter_.get(); | 377 return fraudulent_certificate_reporter_.get(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 net::ProxyService* proxy_service() const { | 380 net::ProxyService* proxy_service() const { |
| 381 return proxy_service_.get(); | 381 return proxy_service_.get(); |
| 382 } | 382 } |
| 383 | 383 |
| 384 base::WeakPtr<net::HttpServerProperties> http_server_properties() const; | 384 base::WeakPtr<net::HttpServerProperties> http_server_properties() const; |
| 385 | 385 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 | 621 |
| 622 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 622 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 623 bool initialized_on_UI_thread_; | 623 bool initialized_on_UI_thread_; |
| 624 | 624 |
| 625 const Profile::ProfileType profile_type_; | 625 const Profile::ProfileType profile_type_; |
| 626 | 626 |
| 627 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 627 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 628 }; | 628 }; |
| 629 | 629 |
| 630 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 630 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |