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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // should only be called from there. | 250 // should only be called from there. |
251 bool GetMetricsEnabledStateOnIOThread() const; | 251 bool GetMetricsEnabledStateOnIOThread() const; |
252 | 252 |
253 void set_client_cert_store_factory_for_testing( | 253 void set_client_cert_store_factory_for_testing( |
254 const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { | 254 const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { |
255 client_cert_store_factory_ = factory; | 255 client_cert_store_factory_ = factory; |
256 } | 256 } |
257 | 257 |
258 bool IsDataReductionProxyEnabled() const; | 258 bool IsDataReductionProxyEnabled() const; |
259 | 259 |
| 260 data_reduction_proxy::DataReductionProxyIOData* |
| 261 data_reduction_proxy_io_data() const { |
| 262 return data_reduction_proxy_io_data_.get(); |
| 263 } |
| 264 |
260 protected: | 265 protected: |
261 // A URLRequestContext for media that owns its HTTP factory, to ensure | 266 // A URLRequestContext for media that owns its HTTP factory, to ensure |
262 // it is deleted. | 267 // it is deleted. |
263 class MediaRequestContext : public net::URLRequestContext { | 268 class MediaRequestContext : public net::URLRequestContext { |
264 public: | 269 public: |
265 MediaRequestContext(); | 270 MediaRequestContext(); |
266 | 271 |
267 void SetHttpTransactionFactory( | 272 void SetHttpTransactionFactory( |
268 scoped_ptr<net::HttpTransactionFactory> http_factory); | 273 scoped_ptr<net::HttpTransactionFactory> http_factory); |
269 | 274 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // ProfileIOData, and the derived class calls this method to set the | 371 // ProfileIOData, and the derived class calls this method to set the |
367 // channel_id_service_ member and transfers ownership to the base | 372 // channel_id_service_ member and transfers ownership to the base |
368 // class. | 373 // class. |
369 void set_channel_id_service( | 374 void set_channel_id_service( |
370 net::ChannelIDService* channel_id_service) const; | 375 net::ChannelIDService* channel_id_service) const; |
371 | 376 |
372 void set_data_reduction_proxy_io_data( | 377 void set_data_reduction_proxy_io_data( |
373 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 378 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
374 data_reduction_proxy_io_data) const; | 379 data_reduction_proxy_io_data) const; |
375 | 380 |
376 data_reduction_proxy::DataReductionProxyIOData* | |
377 data_reduction_proxy_io_data() const { | |
378 return data_reduction_proxy_io_data_.get(); | |
379 } | |
380 | |
381 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { | 381 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { |
382 return fraudulent_certificate_reporter_.get(); | 382 return fraudulent_certificate_reporter_.get(); |
383 } | 383 } |
384 | 384 |
385 net::ProxyService* proxy_service() const { | 385 net::ProxyService* proxy_service() const { |
386 return proxy_service_.get(); | 386 return proxy_service_.get(); |
387 } | 387 } |
388 | 388 |
389 base::WeakPtr<net::HttpServerProperties> http_server_properties() const; | 389 base::WeakPtr<net::HttpServerProperties> http_server_properties() const; |
390 | 390 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 626 |
627 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 627 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
628 bool initialized_on_UI_thread_; | 628 bool initialized_on_UI_thread_; |
629 | 629 |
630 const Profile::ProfileType profile_type_; | 630 const Profile::ProfileType profile_type_; |
631 | 631 |
632 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 632 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
633 }; | 633 }; |
634 | 634 |
635 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 635 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |