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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void* profile; | 169 void* profile; |
170 }; | 170 }; |
171 | 171 |
172 explicit ProfileIOData(bool is_incognito); | 172 explicit ProfileIOData(bool is_incognito); |
173 | 173 |
174 static std::string GetSSLSessionCacheShard(); | 174 static std::string GetSSLSessionCacheShard(); |
175 | 175 |
176 void InitializeOnUIThread(Profile* profile); | 176 void InitializeOnUIThread(Profile* profile); |
177 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 177 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
178 | 178 |
| 179 void SetUpJobFactoryDefaults(net::URLRequestJobFactory* job_factory) const; |
| 180 |
179 // Lazy initializes the ProfileIOData object the first time a request context | 181 // Lazy initializes the ProfileIOData object the first time a request context |
180 // is requested. The lazy logic is implemented here. The actual initialization | 182 // is requested. The lazy logic is implemented here. The actual initialization |
181 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 183 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
182 // functions have been provided to assist in common operations. | 184 // functions have been provided to assist in common operations. |
183 void LazyInitialize() const; | 185 void LazyInitialize() const; |
184 | 186 |
185 // Called when the profile is destroyed. | 187 // Called when the profile is destroyed. |
186 void ShutdownOnUIThread(); | 188 void ShutdownOnUIThread(); |
187 | 189 |
188 BooleanPrefMember* enable_referrers() const { | 190 BooleanPrefMember* enable_referrers() const { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 349 |
348 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 350 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
349 bool initialized_on_UI_thread_; | 351 bool initialized_on_UI_thread_; |
350 | 352 |
351 bool is_incognito_; | 353 bool is_incognito_; |
352 | 354 |
353 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 355 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
354 }; | 356 }; |
355 | 357 |
356 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 358 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |