| 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_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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/scoped_temp_dir.h" | 11 #include "base/memory/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 namespace quota { |
| 24 class SpecialStoragePolicy; |
| 25 } |
| 26 |
| 23 class AutocompleteClassifier; | 27 class AutocompleteClassifier; |
| 24 class BookmarkModel; | 28 class BookmarkModel; |
| 25 class CommandLine; | 29 class CommandLine; |
| 26 class DesktopNotificationService; | 30 class DesktopNotificationService; |
| 27 class ExtensionPrefs; | 31 class ExtensionPrefs; |
| 28 class ExtensionPrefStore; | 32 class ExtensionPrefStore; |
| 29 class ExtensionPrefValueMap; | 33 class ExtensionPrefValueMap; |
| 30 class ExtensionSpecialStoragePolicy; | 34 class ExtensionSpecialStoragePolicy; |
| 31 class FaviconService; | 35 class FaviconService; |
| 32 class FindBarState; | 36 class FindBarState; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 const std::string& cros_notes); | 280 const std::string& cros_notes); |
| 277 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 281 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
| 278 virtual ChromeBlobStorageContext* GetBlobStorageContext(); | 282 virtual ChromeBlobStorageContext* GetBlobStorageContext(); |
| 279 virtual ExtensionInfoMap* GetExtensionInfoMap(); | 283 virtual ExtensionInfoMap* GetExtensionInfoMap(); |
| 280 virtual PromoCounter* GetInstantPromoCounter(); | 284 virtual PromoCounter* GetInstantPromoCounter(); |
| 281 virtual policy::ProfilePolicyConnector* GetPolicyConnector(); | 285 virtual policy::ProfilePolicyConnector* GetPolicyConnector(); |
| 282 virtual ChromeURLDataManager* GetChromeURLDataManager(); | 286 virtual ChromeURLDataManager* GetChromeURLDataManager(); |
| 283 virtual prerender::PrerenderManager* GetPrerenderManager(); | 287 virtual prerender::PrerenderManager* GetPrerenderManager(); |
| 284 virtual PrefService* GetOffTheRecordPrefs(); | 288 virtual PrefService* GetOffTheRecordPrefs(); |
| 285 | 289 |
| 290 // TODO(jam): remove me once webkit_context_unittest.cc doesn't use Profile |
| 291 // and gets the quota::SpecialStoragePolicy* from whatever ends up replacing |
| 292 // it in the content module. |
| 293 quota::SpecialStoragePolicy* GetSpecialStoragePolicy(); |
| 294 |
| 286 protected: | 295 protected: |
| 287 base::Time start_time_; | 296 base::Time start_time_; |
| 288 scoped_ptr<PrefService> prefs_; | 297 scoped_ptr<PrefService> prefs_; |
| 289 // ref only for right type, lifecycle is managed by prefs_ | 298 // ref only for right type, lifecycle is managed by prefs_ |
| 290 TestingPrefService* testing_prefs_; | 299 TestingPrefService* testing_prefs_; |
| 291 | 300 |
| 292 private: | 301 private: |
| 293 // Destroys favicon service if it has been created. | 302 // Destroys favicon service if it has been created. |
| 294 void DestroyFaviconService(); | 303 void DestroyFaviconService(); |
| 295 | 304 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 explicit DerivedTestingProfile(Profile* profile); | 416 explicit DerivedTestingProfile(Profile* profile); |
| 408 virtual ~DerivedTestingProfile(); | 417 virtual ~DerivedTestingProfile(); |
| 409 | 418 |
| 410 virtual ProfileId GetRuntimeId(); | 419 virtual ProfileId GetRuntimeId(); |
| 411 | 420 |
| 412 protected: | 421 protected: |
| 413 Profile* original_profile_; | 422 Profile* original_profile_; |
| 414 }; | 423 }; |
| 415 | 424 |
| 416 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 425 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |