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 26 matching lines...) Expand all Loading... | |
37 class CookieStore; | 37 class CookieStore; |
38 class FraudulentCertificateReporter; | 38 class FraudulentCertificateReporter; |
39 class HttpTransactionFactory; | 39 class HttpTransactionFactory; |
40 class ServerBoundCertService; | 40 class ServerBoundCertService; |
41 class ProxyConfigService; | 41 class ProxyConfigService; |
42 class ProxyService; | 42 class ProxyService; |
43 class SSLConfigService; | 43 class SSLConfigService; |
44 class TransportSecurityState; | 44 class TransportSecurityState; |
45 } // namespace net | 45 } // namespace net |
46 | 46 |
47 namespace predictors { | |
48 class ResourcePrefetchPredictor; | |
49 } // namespace predictors | |
50 | |
47 namespace policy { | 51 namespace policy { |
48 class URLBlacklistManager; | 52 class URLBlacklistManager; |
49 } // namespace policy | 53 } // namespace policy |
50 | 54 |
51 // Conceptually speaking, the ProfileIOData represents data that lives on the IO | 55 // Conceptually speaking, the ProfileIOData represents data that lives on the IO |
52 // thread that is owned by a Profile, such as, but not limited to, network | 56 // thread that is owned by a Profile, such as, but not limited to, network |
53 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns | 57 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns |
54 // ProfileIOData, but will make sure to delete it on the IO thread (except | 58 // ProfileIOData, but will make sure to delete it on the IO thread (except |
55 // possibly in unit tests where there is no IO thread). | 59 // possibly in unit tests where there is no IO thread). |
56 class ProfileIOData { | 60 class ProfileIOData { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
164 #endif | 168 #endif |
165 | 169 |
166 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; | 170 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; |
167 // We need to initialize the ProxyConfigService from the UI thread | 171 // We need to initialize the ProxyConfigService from the UI thread |
168 // because on linux it relies on initializing things through gconf, | 172 // because on linux it relies on initializing things through gconf, |
169 // and needs to be on the main thread. | 173 // and needs to be on the main thread. |
170 scoped_ptr<net::ProxyConfigService> proxy_config_service; | 174 scoped_ptr<net::ProxyConfigService> proxy_config_service; |
171 // The profile this struct was populated from. It's passed as a void* to | 175 // The profile this struct was populated from. It's passed as a void* to |
172 // ensure it's not accidently used on the IO thread. Before using it on the | 176 // ensure it's not accidently used on the IO thread. Before using it on the |
173 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. | 177 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. |
178 scoped_refptr<predictors::ResourcePrefetchPredictor> | |
dominich
2012/05/24 16:07:53
comment applies to |profile| below. So move this.
dominich
2012/05/24 16:07:53
this is the source of my confusion: in Profile IO
Shishir
2012/05/30 01:07:51
Done.
Shishir
2012/05/30 01:07:51
Done.
| |
179 resource_prefetch_predictor_; | |
174 void* profile; | 180 void* profile; |
175 }; | 181 }; |
176 | 182 |
177 explicit ProfileIOData(bool is_incognito); | 183 explicit ProfileIOData(bool is_incognito); |
178 | 184 |
179 static std::string GetSSLSessionCacheShard(); | 185 static std::string GetSSLSessionCacheShard(); |
180 | 186 |
181 void InitializeOnUIThread(Profile* profile); | 187 void InitializeOnUIThread(Profile* profile); |
182 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 188 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
183 | 189 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
353 | 359 |
354 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 360 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
355 bool initialized_on_UI_thread_; | 361 bool initialized_on_UI_thread_; |
356 | 362 |
357 bool is_incognito_; | 363 bool is_incognito_; |
358 | 364 |
359 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 365 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
360 }; | 366 }; |
361 | 367 |
362 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 368 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |