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