| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 28 matching lines...) Expand all Loading... |
| 39 class ExtensionPrefValueMap; | 39 class ExtensionPrefValueMap; |
| 40 class ExtensionSpecialStoragePolicy; | 40 class ExtensionSpecialStoragePolicy; |
| 41 class FaviconService; | 41 class FaviconService; |
| 42 class FindBarState; | 42 class FindBarState; |
| 43 class GeolocationPermissionContext; | 43 class GeolocationPermissionContext; |
| 44 class HistoryService; | 44 class HistoryService; |
| 45 class HostContentSettingsMap; | 45 class HostContentSettingsMap; |
| 46 class PrefService; | 46 class PrefService; |
| 47 class ProfileDependencyManager; | 47 class ProfileDependencyManager; |
| 48 class ProfileSyncService; | 48 class ProfileSyncService; |
| 49 class SpeechInputPreferences; |
| 49 class TemplateURLService; | 50 class TemplateURLService; |
| 50 class TestingPrefService; | 51 class TestingPrefService; |
| 51 class ThemeService; | 52 class ThemeService; |
| 52 class WebKitContext; | 53 class WebKitContext; |
| 53 | 54 |
| 54 namespace net { | 55 namespace net { |
| 55 class URLRequestContextGetter; | 56 class URLRequestContextGetter; |
| 56 } | 57 } |
| 57 | 58 |
| 58 class TestingProfile : public Profile { | 59 class TestingProfile : public Profile { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 214 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
| 214 const std::string& app_id); | 215 const std::string& app_id); |
| 215 | 216 |
| 216 virtual const content::ResourceContext& GetResourceContext(); | 217 virtual const content::ResourceContext& GetResourceContext(); |
| 217 | 218 |
| 218 virtual net::SSLConfigService* GetSSLConfigService(); | 219 virtual net::SSLConfigService* GetSSLConfigService(); |
| 219 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 220 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); |
| 220 virtual FindBarState* GetFindBarState(); | 221 virtual FindBarState* GetFindBarState(); |
| 221 virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 222 virtual HostContentSettingsMap* GetHostContentSettingsMap(); |
| 222 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); | 223 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); |
| 224 virtual SpeechInputPreferences* GetSpeechInputPreferences(); |
| 223 virtual HostZoomMap* GetHostZoomMap(); | 225 virtual HostZoomMap* GetHostZoomMap(); |
| 224 virtual bool HasProfileSyncService() const; | 226 virtual bool HasProfileSyncService() const; |
| 225 virtual std::wstring GetName(); | 227 virtual std::wstring GetName(); |
| 226 virtual void SetName(const std::wstring& name) {} | 228 virtual void SetName(const std::wstring& name) {} |
| 227 virtual std::wstring GetID(); | 229 virtual std::wstring GetID(); |
| 228 virtual void SetID(const std::wstring& id); | 230 virtual void SetID(const std::wstring& id); |
| 229 void set_last_session_exited_cleanly(bool value) { | 231 void set_last_session_exited_cleanly(bool value) { |
| 230 last_session_exited_cleanly_ = value; | 232 last_session_exited_cleanly_ = value; |
| 231 } | 233 } |
| 232 virtual bool DidLastSessionExitCleanly(); | 234 virtual bool DidLastSessionExitCleanly(); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 // WebKitContext, lazily initialized by GetWebKitContext(). | 360 // WebKitContext, lazily initialized by GetWebKitContext(). |
| 359 scoped_refptr<WebKitContext> webkit_context_; | 361 scoped_refptr<WebKitContext> webkit_context_; |
| 360 | 362 |
| 361 // The main database tracker for this profile. | 363 // The main database tracker for this profile. |
| 362 // Should be used only on the file thread. | 364 // Should be used only on the file thread. |
| 363 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; | 365 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |
| 364 | 366 |
| 365 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 367 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 366 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; | 368 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
| 367 | 369 |
| 370 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; |
| 371 |
| 368 // Find bar state. Created lazily by GetFindBarState(). | 372 // Find bar state. Created lazily by GetFindBarState(). |
| 369 scoped_ptr<FindBarState> find_bar_state_; | 373 scoped_ptr<FindBarState> find_bar_state_; |
| 370 | 374 |
| 371 FilePath last_selected_directory_; | 375 FilePath last_selected_directory_; |
| 372 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 376 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
| 373 | 377 |
| 374 // The Extension Preferences. Only created if CreateExtensionService is | 378 // The Extension Preferences. Only created if CreateExtensionService is |
| 375 // invoked. | 379 // invoked. |
| 376 scoped_ptr<ExtensionPrefs> extension_prefs_; | 380 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 377 | 381 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 402 // testing. | 406 // testing. |
| 403 ProfileDependencyManager* profile_dependency_manager_; | 407 ProfileDependencyManager* profile_dependency_manager_; |
| 404 | 408 |
| 405 scoped_refptr<ChromeAppCacheService> appcache_service_; | 409 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 406 | 410 |
| 407 // The QuotaManager, only available if set explicitly via SetQuotaManager. | 411 // The QuotaManager, only available if set explicitly via SetQuotaManager. |
| 408 scoped_refptr<quota::QuotaManager> quota_manager_; | 412 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 409 }; | 413 }; |
| 410 | 414 |
| 411 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 415 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |