| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // possibly in unit tests where there is no IO thread). | 103 // possibly in unit tests where there is no IO thread). |
| 104 class ProfileIOData { | 104 class ProfileIOData { |
| 105 public: | 105 public: |
| 106 typedef std::vector<scoped_refptr<ChromeURLRequestContextGetter>> | 106 typedef std::vector<scoped_refptr<ChromeURLRequestContextGetter>> |
| 107 ChromeURLRequestContextGetterVector; | 107 ChromeURLRequestContextGetterVector; |
| 108 | 108 |
| 109 virtual ~ProfileIOData(); | 109 virtual ~ProfileIOData(); |
| 110 | 110 |
| 111 static ProfileIOData* FromResourceContext(content::ResourceContext* rc); | 111 static ProfileIOData* FromResourceContext(content::ResourceContext* rc); |
| 112 | 112 |
| 113 // Returns true if |scheme| is handled in Chrome, or by default handlers in | 113 // Returns true if |scheme| is handled by a protocol handler built into in |
| 114 // net::URLRequest. | 114 // Chrome, or by default handlers in net::URLRequest. |
| 115 static bool IsHandledProtocol(const std::string& scheme); | 115 static bool IsBuiltInProtocol(const std::string& scheme); |
| 116 | 116 |
| 117 // Returns true if |url| is handled in Chrome, or by default handlers in | 117 // Returns true if |url| is handled in Chrome, or by default handlers in |
| 118 // net::URLRequest. | 118 // net::URLRequest. |
| 119 static bool IsHandledURL(const GURL& url); | 119 static bool HasBuiltInProtocol(const GURL& url); |
| 120 | 120 |
| 121 // Utility to install additional WebUI handlers into the |job_factory|. | 121 // Utility to install additional WebUI handlers into the |job_factory|. |
| 122 // Ownership of the handlers is transfered from |protocol_handlers| | 122 // Ownership of the handlers is transfered from |protocol_handlers| |
| 123 // to the |job_factory|. | 123 // to the |job_factory|. |
| 124 static void InstallProtocolHandlers( | 124 static void InstallProtocolHandlers( |
| 125 net::URLRequestJobFactoryImpl* job_factory, | 125 net::URLRequestJobFactoryImpl* job_factory, |
| 126 content::ProtocolHandlerMap* protocol_handlers); | 126 content::ProtocolHandlerMap* protocol_handlers); |
| 127 | 127 |
| 128 // Sets a global CertVerifier to use when initializing all profiles. | 128 // Sets a global CertVerifier to use when initializing all profiles. |
| 129 static void SetCertVerifierForTesting(net::CertVerifier* cert_verifier); | 129 static void SetCertVerifierForTesting(net::CertVerifier* cert_verifier); |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 631 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
| 632 ct_tree_tracker_; | 632 ct_tree_tracker_; |
| 633 mutable base::Closure ct_tree_tracker_unregistration_; | 633 mutable base::Closure ct_tree_tracker_unregistration_; |
| 634 | 634 |
| 635 const Profile::ProfileType profile_type_; | 635 const Profile::ProfileType profile_type_; |
| 636 | 636 |
| 637 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 637 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 638 }; | 638 }; |
| 639 | 639 |
| 640 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 640 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |