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; |
195 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 199 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
196 virtual net::URLRequestContextGetter* CreateRequestContext( | 200 virtual net::URLRequestContextGetter* CreateRequestContext( |
197 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 201 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
198 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 202 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
199 int renderer_child_id) OVERRIDE; | 203 int renderer_child_id) OVERRIDE; |
200 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 204 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
201 virtual content::GeolocationPermissionContext* | 205 virtual content::GeolocationPermissionContext* |
202 GetGeolocationPermissionContext() OVERRIDE; | 206 GetGeolocationPermissionContext() OVERRIDE; |
203 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 207 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
204 | 208 |
(...skipping 23 matching lines...) Expand all Loading... |
228 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 232 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
229 virtual void DestroyOffTheRecordProfile() OVERRIDE {} | 233 virtual void DestroyOffTheRecordProfile() OVERRIDE {} |
230 virtual bool HasOffTheRecordProfile() OVERRIDE; | 234 virtual bool HasOffTheRecordProfile() OVERRIDE; |
231 virtual Profile* GetOriginalProfile() OVERRIDE; | 235 virtual Profile* GetOriginalProfile() OVERRIDE; |
232 virtual bool IsManaged() OVERRIDE; | 236 virtual bool IsManaged() OVERRIDE; |
233 virtual ExtensionService* GetExtensionService() OVERRIDE; | 237 virtual ExtensionService* GetExtensionService() OVERRIDE; |
234 void SetExtensionSpecialStoragePolicy( | 238 void SetExtensionSpecialStoragePolicy( |
235 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 239 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
236 virtual ExtensionSpecialStoragePolicy* | 240 virtual ExtensionSpecialStoragePolicy* |
237 GetExtensionSpecialStoragePolicy() OVERRIDE; | 241 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* | |
254 GetMediaRequestContextForStoragePartition( | 252 GetMediaRequestContextForStoragePartition( |
255 const base::FilePath& partition_path, | 253 const base::FilePath& partition_path, |
256 bool in_memory) OVERRIDE; | 254 bool in_memory) OVERRIDE; |
257 virtual void RequestMIDISysExPermission( | 255 virtual void RequestMIDISysExPermission( |
258 int render_process_id, | 256 int render_process_id, |
259 int render_view_id, | 257 int render_view_id, |
260 const GURL& requesting_frame, | 258 const GURL& requesting_frame, |
261 const MIDISysExPermissionCallback& callback) OVERRIDE; | 259 const MIDISysExPermissionCallback& callback) OVERRIDE; |
262 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 260 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
263 const base::FilePath& partition_path, | 261 const base::FilePath& partition_path, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // scoped_ptr<>. | 374 // scoped_ptr<>. |
377 content::MockResourceContext* resource_context_; | 375 content::MockResourceContext* resource_context_; |
378 | 376 |
379 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 377 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
380 | 378 |
381 // Weak pointer to a delegate for indicating that a profile was created. | 379 // Weak pointer to a delegate for indicating that a profile was created. |
382 Delegate* delegate_; | 380 Delegate* delegate_; |
383 }; | 381 }; |
384 | 382 |
385 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 383 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |