| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 net::HostResolver* host_resolver_; | 427 net::HostResolver* host_resolver_; |
| 428 net::URLRequestContext* request_context_; | 428 net::URLRequestContext* request_context_; |
| 429 }; | 429 }; |
| 430 | 430 |
| 431 typedef std::map<StoragePartitionDescriptor, | 431 typedef std::map<StoragePartitionDescriptor, |
| 432 net::URLRequestContext*, | 432 net::URLRequestContext*, |
| 433 StoragePartitionDescriptorLess> | 433 StoragePartitionDescriptorLess> |
| 434 URLRequestContextMap; | 434 URLRequestContextMap; |
| 435 | 435 |
| 436 // Sets the |trusted_spdy_proxy_provider| in |params| on IO thread. |params| |
| 437 // should not be NULL. |
| 438 void SetTrustedSpdyProxyProvider( |
| 439 const ProfileParams& profile_params, |
| 440 net::HttpNetworkSession::Params* params) const; |
| 441 |
| 436 // -------------------------------------------- | 442 // -------------------------------------------- |
| 437 // Virtual interface for subtypes to implement: | 443 // Virtual interface for subtypes to implement: |
| 438 // -------------------------------------------- | 444 // -------------------------------------------- |
| 439 | 445 |
| 440 // Does the actual initialization of the ProfileIOData subtype. Subtypes | 446 // Does the actual initialization of the ProfileIOData subtype. Subtypes |
| 441 // should use the static helper functions above to implement this. | 447 // should use the static helper functions above to implement this. |
| 442 virtual void InitializeInternal( | 448 virtual void InitializeInternal( |
| 443 scoped_ptr<ChromeNetworkDelegate> chrome_network_delegate, | 449 scoped_ptr<ChromeNetworkDelegate> chrome_network_delegate, |
| 444 ProfileParams* profile_params, | 450 ProfileParams* profile_params, |
| 445 content::ProtocolHandlerMap* protocol_handlers, | 451 content::ProtocolHandlerMap* protocol_handlers, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 602 |
| 597 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 603 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 598 bool initialized_on_UI_thread_; | 604 bool initialized_on_UI_thread_; |
| 599 | 605 |
| 600 const Profile::ProfileType profile_type_; | 606 const Profile::ProfileType profile_type_; |
| 601 | 607 |
| 602 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 608 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 603 }; | 609 }; |
| 604 | 610 |
| 605 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 611 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |