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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 class ExtensionPrefValueMap; | 40 class ExtensionPrefValueMap; |
41 class ExtensionSpecialStoragePolicy; | 41 class ExtensionSpecialStoragePolicy; |
42 class FaviconService; | 42 class FaviconService; |
43 class HistoryService; | 43 class HistoryService; |
44 class HostContentSettingsMap; | 44 class HostContentSettingsMap; |
45 class PrefService; | 45 class PrefService; |
46 class ProfileDependencyManager; | 46 class ProfileDependencyManager; |
47 class ProfileSyncService; | 47 class ProfileSyncService; |
48 class TemplateURLService; | 48 class TemplateURLService; |
49 class TestingPrefService; | 49 class TestingPrefService; |
50 class WebKitContext; | |
51 | 50 |
52 class TestingProfile : public Profile { | 51 class TestingProfile : public Profile { |
53 public: | 52 public: |
54 // Default constructor that cannot be used with multi-profiles. | 53 // Default constructor that cannot be used with multi-profiles. |
55 TestingProfile(); | 54 TestingProfile(); |
56 | 55 |
57 // Multi-profile aware constructor that takes the path to a directory managed | 56 // Multi-profile aware constructor that takes the path to a directory managed |
58 // for this profile. This constructor is meant to be used by | 57 // for this profile. This constructor is meant to be used by |
59 // TestingProfileManager::CreateTestingProfile. If you need to create multi- | 58 // TestingProfileManager::CreateTestingProfile. If you need to create multi- |
60 // profile profiles, use that factory method instead of this directly. | 59 // profile profiles, use that factory method instead of this directly. |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 last_session_exited_cleanly_ = value; | 233 last_session_exited_cleanly_ = value; |
235 } | 234 } |
236 virtual void MergeResourceString(int message_id, | 235 virtual void MergeResourceString(int message_id, |
237 std::wstring* output_string) {} | 236 std::wstring* output_string) {} |
238 virtual void MergeResourceInteger(int message_id, int* output_value) {} | 237 virtual void MergeResourceInteger(int message_id, int* output_value) {} |
239 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} | 238 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} |
240 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 239 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
241 virtual bool IsSameProfile(Profile *p) OVERRIDE; | 240 virtual bool IsSameProfile(Profile *p) OVERRIDE; |
242 virtual base::Time GetStartTime() const OVERRIDE; | 241 virtual base::Time GetStartTime() const OVERRIDE; |
243 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 242 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
244 virtual WebKitContext* GetOffTheRecordWebKitContext(); | |
245 virtual void MarkAsCleanShutdown() OVERRIDE {} | 243 virtual void MarkAsCleanShutdown() OVERRIDE {} |
246 virtual void InitExtensions(bool extensions_enabled) OVERRIDE {} | 244 virtual void InitExtensions(bool extensions_enabled) OVERRIDE {} |
247 virtual void InitPromoResources() OVERRIDE {} | 245 virtual void InitPromoResources() OVERRIDE {} |
248 virtual void InitRegisteredProtocolHandlers() OVERRIDE {} | 246 virtual void InitRegisteredProtocolHandlers() OVERRIDE {} |
249 | 247 |
250 virtual FilePath last_selected_directory() OVERRIDE; | 248 virtual FilePath last_selected_directory() OVERRIDE; |
251 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 249 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
252 #if defined(OS_CHROMEOS) | 250 #if defined(OS_CHROMEOS) |
253 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE { | 251 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE { |
254 } | 252 } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // testing. | 382 // testing. |
385 ProfileDependencyManager* profile_dependency_manager_; | 383 ProfileDependencyManager* profile_dependency_manager_; |
386 | 384 |
387 scoped_ptr<content::MockResourceContext> resource_context_; | 385 scoped_ptr<content::MockResourceContext> resource_context_; |
388 | 386 |
389 // Weak pointer to a delegate for indicating that a profile was created. | 387 // Weak pointer to a delegate for indicating that a profile was created. |
390 Delegate* delegate_; | 388 Delegate* delegate_; |
391 }; | 389 }; |
392 | 390 |
393 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 391 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |