OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/net/chrome_url_request_context.h" | 13 #include "chrome/browser/net/chrome_url_request_context.h" |
14 #include "chrome/browser/prefs/pref_member.h" | |
14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
15 #include "net/base/cookie_monster.h" | 16 #include "net/base/cookie_monster.h" |
16 | 17 |
17 class CommandLine; | 18 class CommandLine; |
18 class ChromeAppCacheService; | 19 class ChromeAppCacheService; |
19 class ChromeBlobStorageContext; | 20 class ChromeBlobStorageContext; |
20 class ChromeURLRequestContext; | 21 class ChromeURLRequestContext; |
21 class ChromeURLRequestContextGetter; | 22 class ChromeURLRequestContextGetter; |
22 class ExtensionInfoMap; | 23 class ExtensionInfoMap; |
23 namespace fileapi { | 24 namespace fileapi { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 scoped_refptr<ChromeAppCacheService> appcache_service; | 106 scoped_refptr<ChromeAppCacheService> appcache_service; |
106 scoped_refptr<ChromeBlobStorageContext> blob_storage_context; | 107 scoped_refptr<ChromeBlobStorageContext> blob_storage_context; |
107 scoped_refptr<fileapi::FileSystemContext> file_system_context; | 108 scoped_refptr<fileapi::FileSystemContext> file_system_context; |
108 scoped_refptr<ExtensionInfoMap> extension_info_map; | 109 scoped_refptr<ExtensionInfoMap> extension_info_map; |
109 scoped_refptr<prerender::PrerenderManager> prerender_manager; | 110 scoped_refptr<prerender::PrerenderManager> prerender_manager; |
110 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; | 111 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; |
111 // We need to initialize the ProxyConfigService from the UI thread | 112 // We need to initialize the ProxyConfigService from the UI thread |
112 // because on linux it relies on initializing things through gconf, | 113 // because on linux it relies on initializing things through gconf, |
113 // and needs to be on the main thread. | 114 // and needs to be on the main thread. |
114 scoped_ptr<net::ProxyConfigService> proxy_config_service; | 115 scoped_ptr<net::ProxyConfigService> proxy_config_service; |
116 // Initialized on the UI thread. | |
willchan no longer on Chromium
2011/04/05 13:10:41
No need for comment. Everything in this struct has
Bernhard Bauer
2011/04/05 14:49:02
Easy enough :-) Done.
| |
117 scoped_ptr<BooleanPrefMember> enable_referrers; | |
115 // The profile this struct was populated from. | 118 // The profile this struct was populated from. |
116 ProfileId profile_id; | 119 ProfileId profile_id; |
117 }; | 120 }; |
118 | 121 |
119 explicit ProfileIOData(bool is_incognito); | 122 explicit ProfileIOData(bool is_incognito); |
120 virtual ~ProfileIOData(); | 123 virtual ~ProfileIOData(); |
121 | 124 |
122 // Static helper functions to assist in common operations executed by | 125 // Static helper functions to assist in common operations executed by |
123 // subtypes. | 126 // subtypes. |
124 | 127 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 AcquireIsolatedAppRequestContext( | 161 AcquireIsolatedAppRequestContext( |
159 scoped_refptr<ChromeURLRequestContext> main_context, | 162 scoped_refptr<ChromeURLRequestContext> main_context, |
160 const std::string& app_id) const = 0; | 163 const std::string& app_id) const = 0; |
161 | 164 |
162 mutable bool initialized_; | 165 mutable bool initialized_; |
163 | 166 |
164 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 167 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
165 }; | 168 }; |
166 | 169 |
167 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 170 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |