| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 193 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
| 194 virtual void DestroyOffTheRecordProfile() OVERRIDE {} | 194 virtual void DestroyOffTheRecordProfile() OVERRIDE {} |
| 195 virtual bool HasOffTheRecordProfile() OVERRIDE; | 195 virtual bool HasOffTheRecordProfile() OVERRIDE; |
| 196 virtual Profile* GetOriginalProfile() OVERRIDE; | 196 virtual Profile* GetOriginalProfile() OVERRIDE; |
| 197 virtual bool IsManaged() OVERRIDE; | 197 virtual bool IsManaged() OVERRIDE; |
| 198 virtual ExtensionService* GetExtensionService() OVERRIDE; | 198 virtual ExtensionService* GetExtensionService() OVERRIDE; |
| 199 void SetExtensionSpecialStoragePolicy( | 199 void SetExtensionSpecialStoragePolicy( |
| 200 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 200 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
| 201 virtual ExtensionSpecialStoragePolicy* | 201 virtual ExtensionSpecialStoragePolicy* |
| 202 GetExtensionSpecialStoragePolicy() OVERRIDE; | 202 GetExtensionSpecialStoragePolicy() OVERRIDE; |
| 203 // TODO(ajwong): Remove this API in favor of directly retrieving the | |
| 204 // CookieStore from the StoragePartition after ExtensionURLRequestContext | |
| 205 // has been removed. | |
| 206 net::CookieMonster* GetCookieMonster(); | |
| 207 | 203 |
| 208 virtual PrefService* GetPrefs() OVERRIDE; | 204 virtual PrefService* GetPrefs() OVERRIDE; |
| 209 | 205 |
| 210 virtual history::TopSites* GetTopSites() OVERRIDE; | 206 virtual history::TopSites* GetTopSites() OVERRIDE; |
| 211 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 207 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
| 212 | 208 |
| 213 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 209 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| 214 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 210 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 215 int renderer_child_id) OVERRIDE; | 211 int renderer_child_id) OVERRIDE; |
| 216 virtual net::URLRequestContextGetter* | 212 virtual net::URLRequestContextGetter* |
| 217 GetRequestContextForExtensions() OVERRIDE; | |
| 218 virtual net::URLRequestContextGetter* | |
| 219 GetMediaRequestContextForStoragePartition( | 213 GetMediaRequestContextForStoragePartition( |
| 220 const base::FilePath& partition_path, | 214 const base::FilePath& partition_path, |
| 221 bool in_memory) OVERRIDE; | 215 bool in_memory) OVERRIDE; |
| 222 virtual void RequestMIDISysExPermission( | 216 virtual void RequestMIDISysExPermission( |
| 223 int render_process_id, | 217 int render_process_id, |
| 224 int render_view_id, | 218 int render_view_id, |
| 225 const GURL& requesting_frame, | 219 const GURL& requesting_frame, |
| 226 const MIDISysExPermissionCallback& callback) OVERRIDE; | 220 const MIDISysExPermissionCallback& callback) OVERRIDE; |
| 227 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 221 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 228 const base::FilePath& partition_path, | 222 const base::FilePath& partition_path, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // history service processes all pending requests. | 262 // history service processes all pending requests. |
| 269 void BlockUntilHistoryProcessesPendingRequests(); | 263 void BlockUntilHistoryProcessesPendingRequests(); |
| 270 | 264 |
| 271 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 265 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
| 272 virtual void ClearNetworkingHistorySince( | 266 virtual void ClearNetworkingHistorySince( |
| 273 base::Time time, | 267 base::Time time, |
| 274 const base::Closure& completion) OVERRIDE; | 268 const base::Closure& completion) OVERRIDE; |
| 275 virtual GURL GetHomePage() OVERRIDE; | 269 virtual GURL GetHomePage() OVERRIDE; |
| 276 | 270 |
| 277 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 271 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
| 272 virtual content::CookieStoreConfig GetCookieStoreConfig() OVERRIDE; |
| 278 | 273 |
| 279 protected: | 274 protected: |
| 280 base::Time start_time_; | 275 base::Time start_time_; |
| 281 scoped_ptr<PrefServiceSyncable> prefs_; | 276 scoped_ptr<PrefServiceSyncable> prefs_; |
| 282 // ref only for right type, lifecycle is managed by prefs_ | 277 // ref only for right type, lifecycle is managed by prefs_ |
| 283 TestingPrefServiceSyncable* testing_prefs_; | 278 TestingPrefServiceSyncable* testing_prefs_; |
| 284 | 279 |
| 285 private: | 280 private: |
| 286 // Creates a temporary directory for use by this profile. | 281 // Creates a temporary directory for use by this profile. |
| 287 void CreateTempProfileDir(); | 282 void CreateTempProfileDir(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // scoped_ptr<>. | 335 // scoped_ptr<>. |
| 341 content::MockResourceContext* resource_context_; | 336 content::MockResourceContext* resource_context_; |
| 342 | 337 |
| 343 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; | 338 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; |
| 344 | 339 |
| 345 // Weak pointer to a delegate for indicating that a profile was created. | 340 // Weak pointer to a delegate for indicating that a profile was created. |
| 346 Delegate* delegate_; | 341 Delegate* delegate_; |
| 347 }; | 342 }; |
| 348 | 343 |
| 349 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 344 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |