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_TEST_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 void BlockUntilTopSitesLoaded(); | 185 void BlockUntilTopSitesLoaded(); |
186 | 186 |
187 TestingPrefServiceSyncable* GetTestingPrefService(); | 187 TestingPrefServiceSyncable* GetTestingPrefService(); |
188 | 188 |
189 // content::BrowserContext | 189 // content::BrowserContext |
190 virtual base::FilePath GetPath() const OVERRIDE; | 190 virtual base::FilePath GetPath() const OVERRIDE; |
191 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 191 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
192 virtual bool IsOffTheRecord() const OVERRIDE; | 192 virtual bool IsOffTheRecord() const OVERRIDE; |
193 virtual content::DownloadManagerDelegate* | 193 virtual content::DownloadManagerDelegate* |
194 GetDownloadManagerDelegate() OVERRIDE; | 194 GetDownloadManagerDelegate() OVERRIDE; |
195 virtual void OverrideCookieStoreConfigs(const base::FilePath& partition_path, | |
196 bool in_memory_partition, | |
197 bool is_default_partition, | |
198 CookieSchemeMap* configs) OVERRIDE; | |
199 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 195 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
200 virtual net::URLRequestContextGetter* CreateRequestContext( | 196 virtual net::URLRequestContextGetter* CreateRequestContext( |
201 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 197 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
202 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 198 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
203 int renderer_child_id) OVERRIDE; | 199 int renderer_child_id) OVERRIDE; |
204 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 200 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
205 virtual content::GeolocationPermissionContext* | 201 virtual content::GeolocationPermissionContext* |
206 GetGeolocationPermissionContext() OVERRIDE; | 202 GetGeolocationPermissionContext() OVERRIDE; |
207 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 203 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
208 | 204 |
(...skipping 23 matching lines...) Expand all Loading... |
232 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 228 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
233 virtual void DestroyOffTheRecordProfile() OVERRIDE {} | 229 virtual void DestroyOffTheRecordProfile() OVERRIDE {} |
234 virtual bool HasOffTheRecordProfile() OVERRIDE; | 230 virtual bool HasOffTheRecordProfile() OVERRIDE; |
235 virtual Profile* GetOriginalProfile() OVERRIDE; | 231 virtual Profile* GetOriginalProfile() OVERRIDE; |
236 virtual bool IsManaged() OVERRIDE; | 232 virtual bool IsManaged() OVERRIDE; |
237 virtual ExtensionService* GetExtensionService() OVERRIDE; | 233 virtual ExtensionService* GetExtensionService() OVERRIDE; |
238 void SetExtensionSpecialStoragePolicy( | 234 void SetExtensionSpecialStoragePolicy( |
239 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 235 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
240 virtual ExtensionSpecialStoragePolicy* | 236 virtual ExtensionSpecialStoragePolicy* |
241 GetExtensionSpecialStoragePolicy() OVERRIDE; | 237 GetExtensionSpecialStoragePolicy() OVERRIDE; |
| 238 // TODO(ajwong): Remove this API in favor of directly retrieving the |
| 239 // CookieStore from the StoragePartition after ExtensionURLRequestContext |
| 240 // has been removed. |
| 241 net::CookieMonster* GetCookieMonster(); |
242 | 242 |
243 virtual PrefService* GetPrefs() OVERRIDE; | 243 virtual PrefService* GetPrefs() OVERRIDE; |
244 | 244 |
245 virtual history::TopSites* GetTopSites() OVERRIDE; | 245 virtual history::TopSites* GetTopSites() OVERRIDE; |
246 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 246 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
247 | 247 |
248 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 248 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
249 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 249 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
250 int renderer_child_id) OVERRIDE; | 250 int renderer_child_id) OVERRIDE; |
251 virtual net::URLRequestContextGetter* | 251 virtual net::URLRequestContextGetter* |
| 252 GetRequestContextForExtensions() OVERRIDE; |
| 253 virtual net::URLRequestContextGetter* |
252 GetMediaRequestContextForStoragePartition( | 254 GetMediaRequestContextForStoragePartition( |
253 const base::FilePath& partition_path, | 255 const base::FilePath& partition_path, |
254 bool in_memory) OVERRIDE; | 256 bool in_memory) OVERRIDE; |
255 virtual void RequestMIDISysExPermission( | 257 virtual void RequestMIDISysExPermission( |
256 int render_process_id, | 258 int render_process_id, |
257 int render_view_id, | 259 int render_view_id, |
258 const GURL& requesting_frame, | 260 const GURL& requesting_frame, |
259 const MIDISysExPermissionCallback& callback) OVERRIDE; | 261 const MIDISysExPermissionCallback& callback) OVERRIDE; |
260 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 262 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
261 const base::FilePath& partition_path, | 263 const base::FilePath& partition_path, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // scoped_ptr<>. | 376 // scoped_ptr<>. |
375 content::MockResourceContext* resource_context_; | 377 content::MockResourceContext* resource_context_; |
376 | 378 |
377 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 379 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
378 | 380 |
379 // Weak pointer to a delegate for indicating that a profile was created. | 381 // Weak pointer to a delegate for indicating that a profile was created. |
380 Delegate* delegate_; | 382 Delegate* delegate_; |
381 }; | 383 }; |
382 | 384 |
383 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 385 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |