| 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 content { | 
|  | 16 class ResourceContextGetter; | 
|  | 17 } | 
|  | 18 | 
| 15 namespace history { | 19 namespace history { | 
| 16 class TopSites; | 20 class TopSites; | 
| 17 } | 21 } | 
| 18 | 22 | 
| 19 namespace net { | 23 namespace net { | 
| 20 class CookieMonster; | 24 class CookieMonster; | 
| 21 } | 25 } | 
| 22 | 26 | 
| 23 namespace quota { | 27 namespace quota { | 
| 24 class SpecialStoragePolicy; | 28 class SpecialStoragePolicy; | 
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 200   void CreateRequestContext(); | 204   void CreateRequestContext(); | 
| 201   // Clears out the created request context (which must be done before shutting | 205   // Clears out the created request context (which must be done before shutting | 
| 202   // down the IO thread to avoid leaks). | 206   // down the IO thread to avoid leaks). | 
| 203   void ResetRequestContext(); | 207   void ResetRequestContext(); | 
| 204 | 208 | 
| 205   virtual net::URLRequestContextGetter* GetRequestContextForMedia(); | 209   virtual net::URLRequestContextGetter* GetRequestContextForMedia(); | 
| 206   virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); | 210   virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); | 
| 207   virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 211   virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 
| 208       const std::string& app_id); | 212       const std::string& app_id); | 
| 209 | 213 | 
|  | 214   virtual const content::ResourceContext& GetResourceContext(); | 
|  | 215 | 
| 210   virtual net::SSLConfigService* GetSSLConfigService(); | 216   virtual net::SSLConfigService* GetSSLConfigService(); | 
| 211   virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 217   virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 
| 212   virtual FindBarState* GetFindBarState(); | 218   virtual FindBarState* GetFindBarState(); | 
| 213   virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 219   virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 
| 214   virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); | 220   virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); | 
| 215   virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); | 221   virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); | 
| 216   virtual HostZoomMap* GetHostZoomMap(); | 222   virtual HostZoomMap* GetHostZoomMap(); | 
| 217   void set_session_service(SessionService* session_service); | 223   void set_session_service(SessionService* session_service); | 
| 218   virtual SessionService* GetSessionService(); | 224   virtual SessionService* GetSessionService(); | 
| 219   virtual void ShutdownSessionService() {} | 225   virtual void ShutdownSessionService() {} | 
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 411   explicit DerivedTestingProfile(Profile* profile); | 417   explicit DerivedTestingProfile(Profile* profile); | 
| 412   virtual ~DerivedTestingProfile(); | 418   virtual ~DerivedTestingProfile(); | 
| 413 | 419 | 
| 414   virtual ProfileId GetRuntimeId(); | 420   virtual ProfileId GetRuntimeId(); | 
| 415 | 421 | 
| 416  protected: | 422  protected: | 
| 417   Profile* original_profile_; | 423   Profile* original_profile_; | 
| 418 }; | 424 }; | 
| 419 | 425 | 
| 420 #endif  // CHROME_TEST_TESTING_PROFILE_H_ | 426 #endif  // CHROME_TEST_TESTING_PROFILE_H_ | 
| OLD | NEW | 
|---|