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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class TransportSecurityState; | 54 class TransportSecurityState; |
55 class URLRequestJobFactoryImpl; | 55 class URLRequestJobFactoryImpl; |
56 } // namespace net | 56 } // namespace net |
57 | 57 |
58 namespace policy { | 58 namespace policy { |
59 class PolicyCertVerifier; | 59 class PolicyCertVerifier; |
60 class PolicyHeaderIOHelper; | 60 class PolicyHeaderIOHelper; |
61 class URLBlacklistManager; | 61 class URLBlacklistManager; |
62 } // namespace policy | 62 } // namespace policy |
63 | 63 |
| 64 namespace prerender { |
| 65 class PrerenderTracker; |
| 66 } |
| 67 |
64 // Conceptually speaking, the ProfileIOData represents data that lives on the IO | 68 // Conceptually speaking, the ProfileIOData represents data that lives on the IO |
65 // thread that is owned by a Profile, such as, but not limited to, network | 69 // thread that is owned by a Profile, such as, but not limited to, network |
66 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns | 70 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns |
67 // ProfileIOData, but will make sure to delete it on the IO thread (except | 71 // ProfileIOData, but will make sure to delete it on the IO thread (except |
68 // possibly in unit tests where there is no IO thread). | 72 // possibly in unit tests where there is no IO thread). |
69 class ProfileIOData { | 73 class ProfileIOData { |
70 public: | 74 public: |
71 virtual ~ProfileIOData(); | 75 virtual ~ProfileIOData(); |
72 | 76 |
73 static ProfileIOData* FromResourceContext(content::ResourceContext* rc); | 77 static ProfileIOData* FromResourceContext(content::ResourceContext* rc); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 #endif | 295 #endif |
292 | 296 |
293 #if defined(OS_CHROMEOS) | 297 #if defined(OS_CHROMEOS) |
294 std::string username_hash; | 298 std::string username_hash; |
295 #endif | 299 #endif |
296 | 300 |
297 // The profile this struct was populated from. It's passed as a void* to | 301 // The profile this struct was populated from. It's passed as a void* to |
298 // ensure it's not accidently used on the IO thread. Before using it on the | 302 // ensure it's not accidently used on the IO thread. Before using it on the |
299 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. | 303 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. |
300 void* profile; | 304 void* profile; |
| 305 |
| 306 prerender::PrerenderTracker* prerender_tracker; |
301 }; | 307 }; |
302 | 308 |
303 explicit ProfileIOData(Profile::ProfileType profile_type); | 309 explicit ProfileIOData(Profile::ProfileType profile_type); |
304 | 310 |
305 static std::string GetSSLSessionCacheShard(); | 311 static std::string GetSSLSessionCacheShard(); |
306 | 312 |
307 void InitializeOnUIThread(Profile* profile); | 313 void InitializeOnUIThread(Profile* profile); |
308 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 314 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
309 | 315 |
310 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( | 316 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 565 |
560 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 566 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
561 bool initialized_on_UI_thread_; | 567 bool initialized_on_UI_thread_; |
562 | 568 |
563 const Profile::ProfileType profile_type_; | 569 const Profile::ProfileType profile_type_; |
564 | 570 |
565 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 571 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
566 }; | 572 }; |
567 | 573 |
568 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 574 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |