| 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 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace quota { | 31 namespace quota { |
| 32 class SpecialStoragePolicy; | 32 class SpecialStoragePolicy; |
| 33 } | 33 } |
| 34 | 34 |
| 35 class AutocompleteClassifier; | 35 class AutocompleteClassifier; |
| 36 class BookmarkModel; | 36 class BookmarkModel; |
| 37 class CommandLine; | 37 class CommandLine; |
| 38 class ExtensionPrefs; | 38 class ExtensionPrefs; |
| 39 class ExtensionPrefValueMap; | |
| 40 class ExtensionSpecialStoragePolicy; | 39 class ExtensionSpecialStoragePolicy; |
| 41 class FaviconService; | 40 class FaviconService; |
| 42 class HistoryService; | 41 class HistoryService; |
| 43 class HostContentSettingsMap; | 42 class HostContentSettingsMap; |
| 44 class PrefService; | 43 class PrefService; |
| 45 class ProfileDependencyManager; | 44 class ProfileDependencyManager; |
| 46 class ProfileSyncService; | 45 class ProfileSyncService; |
| 47 class TemplateURLService; | 46 class TemplateURLService; |
| 48 class TestingPrefService; | 47 class TestingPrefService; |
| 49 | 48 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 349 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
| 351 | 350 |
| 352 // The Extension Preferences. Only created if CreateExtensionService is | 351 // The Extension Preferences. Only created if CreateExtensionService is |
| 353 // invoked. | 352 // invoked. |
| 354 scoped_ptr<ExtensionPrefs> extension_prefs_; | 353 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 355 | 354 |
| 356 scoped_ptr<ExtensionService> extension_service_; | 355 scoped_ptr<ExtensionService> extension_service_; |
| 357 | 356 |
| 358 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 357 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
| 359 | 358 |
| 360 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; | |
| 361 | |
| 362 scoped_refptr<ExtensionSpecialStoragePolicy> | 359 scoped_refptr<ExtensionSpecialStoragePolicy> |
| 363 extension_special_storage_policy_; | 360 extension_special_storage_policy_; |
| 364 | 361 |
| 365 // The proxy prefs tracker. | 362 // The proxy prefs tracker. |
| 366 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 363 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 367 | 364 |
| 368 // We use a temporary directory to store testing profile data. In a multi- | 365 // We use a temporary directory to store testing profile data. In a multi- |
| 369 // profile environment, this is invalid and the directory is managed by the | 366 // profile environment, this is invalid and the directory is managed by the |
| 370 // TestingProfileManager. | 367 // TestingProfileManager. |
| 371 ScopedTempDir temp_dir_; | 368 ScopedTempDir temp_dir_; |
| 372 // The path to this profile. This will be valid in either of the two above | 369 // The path to this profile. This will be valid in either of the two above |
| 373 // cases. | 370 // cases. |
| 374 FilePath profile_path_; | 371 FilePath profile_path_; |
| 375 | 372 |
| 376 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 373 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
| 377 | 374 |
| 378 // We keep a weak pointer to the dependency manager we want to notify on our | 375 // We keep a weak pointer to the dependency manager we want to notify on our |
| 379 // death. Defaults to the Singleton implementation but overridable for | 376 // death. Defaults to the Singleton implementation but overridable for |
| 380 // testing. | 377 // testing. |
| 381 ProfileDependencyManager* profile_dependency_manager_; | 378 ProfileDependencyManager* profile_dependency_manager_; |
| 382 | 379 |
| 383 scoped_ptr<content::MockResourceContext> resource_context_; | 380 scoped_ptr<content::MockResourceContext> resource_context_; |
| 384 | 381 |
| 385 // Weak pointer to a delegate for indicating that a profile was created. | 382 // Weak pointer to a delegate for indicating that a profile was created. |
| 386 Delegate* delegate_; | 383 Delegate* delegate_; |
| 387 }; | 384 }; |
| 388 | 385 |
| 389 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 386 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
| OLD | NEW |