Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: chrome/test/testing_profile.h

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependencies. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 void CreateRequestContext(); 207 void CreateRequestContext();
204 // Clears out the created request context (which must be done before shutting 208 // Clears out the created request context (which must be done before shutting
205 // down the IO thread to avoid leaks). 209 // down the IO thread to avoid leaks).
206 void ResetRequestContext(); 210 void ResetRequestContext();
207 211
208 virtual net::URLRequestContextGetter* GetRequestContextForMedia(); 212 virtual net::URLRequestContextGetter* GetRequestContextForMedia();
209 virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); 213 virtual net::URLRequestContextGetter* GetRequestContextForExtensions();
210 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 214 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
211 const std::string& app_id); 215 const std::string& app_id);
212 216
217 virtual const content::ResourceContext& GetResourceContext();
218
213 virtual net::SSLConfigService* GetSSLConfigService(); 219 virtual net::SSLConfigService* GetSSLConfigService();
214 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 220 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
215 virtual FindBarState* GetFindBarState(); 221 virtual FindBarState* GetFindBarState();
216 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 222 virtual HostContentSettingsMap* GetHostContentSettingsMap();
217 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); 223 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
218 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 224 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
219 virtual HostZoomMap* GetHostZoomMap(); 225 virtual HostZoomMap* GetHostZoomMap();
220 void set_session_service(SessionService* session_service); 226 void set_session_service(SessionService* session_service);
221 virtual SessionService* GetSessionService(); 227 virtual SessionService* GetSessionService();
222 virtual void ShutdownSessionService() {} 228 virtual void ShutdownSessionService() {}
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 explicit DerivedTestingProfile(Profile* profile); 422 explicit DerivedTestingProfile(Profile* profile);
417 virtual ~DerivedTestingProfile(); 423 virtual ~DerivedTestingProfile();
418 424
419 virtual ProfileId GetRuntimeId(); 425 virtual ProfileId GetRuntimeId();
420 426
421 protected: 427 protected:
422 Profile* original_profile_; 428 Profile* original_profile_;
423 }; 429 };
424 430
425 #endif // CHROME_TEST_TESTING_PROFILE_H_ 431 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698