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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 GetSpeechRecognitionPreferences() OVERRIDE; | 194 GetSpeechRecognitionPreferences() OVERRIDE; |
195 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 195 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
196 | 196 |
197 virtual TestingProfile* AsTestingProfile() OVERRIDE; | 197 virtual TestingProfile* AsTestingProfile() OVERRIDE; |
198 virtual std::string GetProfileName() OVERRIDE; | 198 virtual std::string GetProfileName() OVERRIDE; |
199 void set_incognito(bool incognito) { incognito_ = incognito; } | 199 void set_incognito(bool incognito) { incognito_ = incognito; } |
200 // Assumes ownership. | 200 // Assumes ownership. |
201 virtual void SetOffTheRecordProfile(Profile* profile); | 201 virtual void SetOffTheRecordProfile(Profile* profile); |
202 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 202 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
203 virtual void DestroyOffTheRecordProfile() OVERRIDE {} | 203 virtual void DestroyOffTheRecordProfile() OVERRIDE {} |
204 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; | |
205 virtual bool HasOffTheRecordProfile() OVERRIDE; | 204 virtual bool HasOffTheRecordProfile() OVERRIDE; |
206 virtual Profile* GetOriginalProfile() OVERRIDE; | 205 virtual Profile* GetOriginalProfile() OVERRIDE; |
207 virtual ExtensionService* GetExtensionService() OVERRIDE; | 206 virtual ExtensionService* GetExtensionService() OVERRIDE; |
208 void SetExtensionSpecialStoragePolicy( | 207 void SetExtensionSpecialStoragePolicy( |
209 ExtensionSpecialStoragePolicy* extension_special_storage_policy); | 208 ExtensionSpecialStoragePolicy* extension_special_storage_policy); |
210 virtual ExtensionSpecialStoragePolicy* | 209 virtual ExtensionSpecialStoragePolicy* |
211 GetExtensionSpecialStoragePolicy() OVERRIDE; | 210 GetExtensionSpecialStoragePolicy() OVERRIDE; |
212 // The CookieMonster will only be returned if a Context has been created. Do | 211 // The CookieMonster will only be returned if a Context has been created. Do |
213 // this by calling CreateRequestContext(). See the note at GetRequestContext | 212 // this by calling CreateRequestContext(). See the note at GetRequestContext |
214 // for more information. | 213 // for more information. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // testing. | 356 // testing. |
358 ProfileDependencyManager* profile_dependency_manager_; | 357 ProfileDependencyManager* profile_dependency_manager_; |
359 | 358 |
360 scoped_ptr<content::MockResourceContext> resource_context_; | 359 scoped_ptr<content::MockResourceContext> resource_context_; |
361 | 360 |
362 // Weak pointer to a delegate for indicating that a profile was created. | 361 // Weak pointer to a delegate for indicating that a profile was created. |
363 Delegate* delegate_; | 362 Delegate* delegate_; |
364 }; | 363 }; |
365 | 364 |
366 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 365 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |