| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } | 243 } |
| 244 | 244 |
| 245 // Assumes ownership. | 245 // Assumes ownership. |
| 246 virtual void SetOffTheRecordProfile(scoped_ptr<Profile> profile); | 246 virtual void SetOffTheRecordProfile(scoped_ptr<Profile> profile); |
| 247 virtual void SetOriginalProfile(Profile* profile); | 247 virtual void SetOriginalProfile(Profile* profile); |
| 248 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 248 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
| 249 virtual void DestroyOffTheRecordProfile() OVERRIDE {} | 249 virtual void DestroyOffTheRecordProfile() OVERRIDE {} |
| 250 virtual bool HasOffTheRecordProfile() OVERRIDE; | 250 virtual bool HasOffTheRecordProfile() OVERRIDE; |
| 251 virtual Profile* GetOriginalProfile() OVERRIDE; | 251 virtual Profile* GetOriginalProfile() OVERRIDE; |
| 252 virtual bool IsSupervised() OVERRIDE; | 252 virtual bool IsSupervised() OVERRIDE; |
| 253 virtual ExtensionService* GetExtensionService() OVERRIDE; | |
| 254 void SetExtensionSpecialStoragePolicy( | 253 void SetExtensionSpecialStoragePolicy( |
| 255 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 254 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
| 256 virtual ExtensionSpecialStoragePolicy* | 255 virtual ExtensionSpecialStoragePolicy* |
| 257 GetExtensionSpecialStoragePolicy() OVERRIDE; | 256 GetExtensionSpecialStoragePolicy() OVERRIDE; |
| 258 // TODO(ajwong): Remove this API in favor of directly retrieving the | 257 // TODO(ajwong): Remove this API in favor of directly retrieving the |
| 259 // CookieStore from the StoragePartition after ExtensionURLRequestContext | 258 // CookieStore from the StoragePartition after ExtensionURLRequestContext |
| 260 // has been removed. | 259 // has been removed. |
| 261 net::CookieMonster* GetCookieMonster(); | 260 net::CookieMonster* GetCookieMonster(); |
| 262 | 261 |
| 263 virtual PrefService* GetPrefs() OVERRIDE; | 262 virtual PrefService* GetPrefs() OVERRIDE; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 395 |
| 397 // Weak pointer to a delegate for indicating that a profile was created. | 396 // Weak pointer to a delegate for indicating that a profile was created. |
| 398 Delegate* delegate_; | 397 Delegate* delegate_; |
| 399 | 398 |
| 400 std::string profile_name_; | 399 std::string profile_name_; |
| 401 | 400 |
| 402 scoped_ptr<policy::PolicyService> policy_service_; | 401 scoped_ptr<policy::PolicyService> policy_service_; |
| 403 }; | 402 }; |
| 404 | 403 |
| 405 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 404 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |