| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // returned to non-incognito before destruction to allow services to | 261 // returned to non-incognito before destruction to allow services to |
| 262 // properly shutdown. This is only supported for legacy tests - new tests | 262 // properly shutdown. This is only supported for legacy tests - new tests |
| 263 // should create a true incognito profile using Builder::SetIncognito() or | 263 // should create a true incognito profile using Builder::SetIncognito() or |
| 264 // by using the TestingProfile constructor that allows setting the incognito | 264 // by using the TestingProfile constructor that allows setting the incognito |
| 265 // flag. | 265 // flag. |
| 266 void ForceIncognito(bool force_incognito) { | 266 void ForceIncognito(bool force_incognito) { |
| 267 force_incognito_ = force_incognito; | 267 force_incognito_ = force_incognito; |
| 268 } | 268 } |
| 269 | 269 |
| 270 Profile* GetOffTheRecordProfile() override; | 270 Profile* GetOffTheRecordProfile() override; |
| 271 void DestroyOffTheRecordProfile() override {} | 271 void DestroyOffTheRecordProfile() override; |
| 272 bool HasOffTheRecordProfile() override; | 272 bool HasOffTheRecordProfile() override; |
| 273 Profile* GetOriginalProfile() override; | 273 Profile* GetOriginalProfile() override; |
| 274 bool IsSupervised() const override; | 274 bool IsSupervised() const override; |
| 275 bool IsChild() const override; | 275 bool IsChild() const override; |
| 276 bool IsLegacySupervised() const override; | 276 bool IsLegacySupervised() const override; |
| 277 #if defined(ENABLE_EXTENSIONS) | 277 #if defined(ENABLE_EXTENSIONS) |
| 278 void SetExtensionSpecialStoragePolicy( | 278 void SetExtensionSpecialStoragePolicy( |
| 279 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 279 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
| 280 #endif | 280 #endif |
| 281 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; | 281 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 // Weak pointer to a delegate for indicating that a profile was created. | 414 // Weak pointer to a delegate for indicating that a profile was created. |
| 415 Delegate* delegate_; | 415 Delegate* delegate_; |
| 416 | 416 |
| 417 std::string profile_name_; | 417 std::string profile_name_; |
| 418 | 418 |
| 419 std::unique_ptr<policy::PolicyService> policy_service_; | 419 std::unique_ptr<policy::PolicyService> policy_service_; |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 422 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |