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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 typedef std::map<StoragePartitionDescriptor, | 443 typedef std::map<StoragePartitionDescriptor, |
444 net::URLRequestContext*, | 444 net::URLRequestContext*, |
445 StoragePartitionDescriptorLess> | 445 StoragePartitionDescriptorLess> |
446 URLRequestContextMap; | 446 URLRequestContextMap; |
447 | 447 |
448 // -------------------------------------------- | 448 // -------------------------------------------- |
449 // Virtual interface for subtypes to implement: | 449 // Virtual interface for subtypes to implement: |
450 // -------------------------------------------- | 450 // -------------------------------------------- |
451 | 451 |
452 // Does any necessary additional configuration of the network delegate, | |
453 // including composing it with other NetworkDelegates, if needed. By default, | |
454 // just returns the input NetworkDelegate. | |
455 virtual std::unique_ptr<net::NetworkDelegate> ConfigureNetworkDelegate( | |
456 IOThread* io_thread, | |
457 std::unique_ptr<ChromeNetworkDelegate> chrome_network_delegate) const; | |
458 | |
459 // Does the actual initialization of the ProfileIOData subtype. Subtypes | 452 // Does the actual initialization of the ProfileIOData subtype. Subtypes |
460 // should use the static helper functions above to implement this. | 453 // should use the static helper functions above to implement this. |
461 virtual void InitializeInternal( | 454 virtual void InitializeInternal( |
| 455 std::unique_ptr<ChromeNetworkDelegate> chrome_network_delegate, |
462 ProfileParams* profile_params, | 456 ProfileParams* profile_params, |
463 content::ProtocolHandlerMap* protocol_handlers, | 457 content::ProtocolHandlerMap* protocol_handlers, |
464 content::URLRequestInterceptorScopedVector request_interceptors) | 458 content::URLRequestInterceptorScopedVector request_interceptors) |
465 const = 0; | 459 const = 0; |
466 | 460 |
467 // Initializes the RequestContext for extensions. | 461 // Initializes the RequestContext for extensions. |
468 virtual void InitializeExtensionsRequestContext( | 462 virtual void InitializeExtensionsRequestContext( |
469 ProfileParams* profile_params) const = 0; | 463 ProfileParams* profile_params) const = 0; |
470 // Does an on-demand initialization of a RequestContext for the given | 464 // Does an on-demand initialization of a RequestContext for the given |
471 // isolated app. | 465 // isolated app. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 611 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
618 ct_tree_tracker_; | 612 ct_tree_tracker_; |
619 mutable base::Closure ct_tree_tracker_unregistration_; | 613 mutable base::Closure ct_tree_tracker_unregistration_; |
620 | 614 |
621 const Profile::ProfileType profile_type_; | 615 const Profile::ProfileType profile_type_; |
622 | 616 |
623 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 617 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
624 }; | 618 }; |
625 | 619 |
626 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 620 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |