| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
| 6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
| 12 #include "base/timer.h" | 12 #include "base/timer.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 | 14 |
| 15 namespace history { | 15 namespace history { |
| 16 class TopSites; | 16 class TopSites; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 class CookieMonster; | 20 class CookieMonster; |
| 21 } | 21 } |
| 22 | 22 |
| 23 class AutocompleteClassifier; | 23 class AutocompleteClassifier; |
| 24 class BookmarkModel; | 24 class BookmarkModel; |
| 25 class BrowserThemeProvider; | 25 class BrowserThemeProvider; |
| 26 class CommandLine; | 26 class CommandLine; |
| 27 class DesktopNotificationService; | 27 class DesktopNotificationService; |
| 28 class ExtensionPrefStore; |
| 28 class ExtensionPrefs; | 29 class ExtensionPrefs; |
| 29 class FaviconService; | 30 class FaviconService; |
| 30 class FindBarState; | 31 class FindBarState; |
| 31 class GeolocationContentSettingsMap; | 32 class GeolocationContentSettingsMap; |
| 32 class GeolocationPermissionContext; | 33 class GeolocationPermissionContext; |
| 33 class HistoryService; | 34 class HistoryService; |
| 34 class HostContentSettingsMap; | 35 class HostContentSettingsMap; |
| 35 class PrefService; | 36 class PrefService; |
| 36 class ProfileSyncService; | 37 class ProfileSyncService; |
| 37 class SessionService; | 38 class SessionService; |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 geolocation_content_settings_map_; | 399 geolocation_content_settings_map_; |
| 399 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; | 400 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
| 400 scoped_ptr<DesktopNotificationService> desktop_notification_service_; | 401 scoped_ptr<DesktopNotificationService> desktop_notification_service_; |
| 401 | 402 |
| 402 // Find bar state. Created lazily by GetFindBarState(). | 403 // Find bar state. Created lazily by GetFindBarState(). |
| 403 scoped_ptr<FindBarState> find_bar_state_; | 404 scoped_ptr<FindBarState> find_bar_state_; |
| 404 | 405 |
| 405 FilePath last_selected_directory_; | 406 FilePath last_selected_directory_; |
| 406 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 407 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
| 407 | 408 |
| 409 // Extension pref store, created for use by |extension_prefs_|. |
| 410 scoped_ptr<ExtensionPrefStore> extension_pref_store_; |
| 411 |
| 408 // The Extension Preferences. Only created if CreateExtensionsService is | 412 // The Extension Preferences. Only created if CreateExtensionsService is |
| 409 // invoked. | 413 // invoked. |
| 410 scoped_ptr<ExtensionPrefs> extension_prefs_; | 414 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 411 | 415 |
| 412 // For properly notifying the ExtensionsService when the profile | 416 // For properly notifying the ExtensionsService when the profile |
| 413 // is disposed. | 417 // is disposed. |
| 414 scoped_refptr<ExtensionsService> extensions_service_; | 418 scoped_refptr<ExtensionsService> extensions_service_; |
| 415 | 419 |
| 416 // The proxy prefs tracker. | 420 // The proxy prefs tracker. |
| 417 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 421 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 430 | 434 |
| 431 virtual ProfileId GetRuntimeId() { | 435 virtual ProfileId GetRuntimeId() { |
| 432 return original_profile_->GetRuntimeId(); | 436 return original_profile_->GetRuntimeId(); |
| 433 } | 437 } |
| 434 | 438 |
| 435 protected: | 439 protected: |
| 436 Profile* original_profile_; | 440 Profile* original_profile_; |
| 437 }; | 441 }; |
| 438 | 442 |
| 439 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 443 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |