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

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

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor and address comments. Created 9 years, 9 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/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 // Returns a testing ContextGetter (if one has been created via 196 // Returns a testing ContextGetter (if one has been created via
197 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: 197 // CreateRequestContext) or NULL. This is not done on-demand for two reasons:
198 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because 198 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because
199 // of the special memory management considerations for the 199 // of the special memory management considerations for the
200 // TestURLRequestContextGetter class, many tests would find themseleves 200 // TestURLRequestContextGetter class, many tests would find themseleves
201 // leaking if they called this method without the necessary IO thread. This 201 // leaking if they called this method without the necessary IO thread. This
202 // getter is currently only capable of returning a Context that helps test 202 // getter is currently only capable of returning a Context that helps test
203 // the CookieMonster. See implementation comments for more details. 203 // the CookieMonster. See implementation comments for more details.
204 virtual URLRequestContextGetter* GetRequestContext(); 204 virtual URLRequestContextGetter* GetRequestContext();
205 virtual URLRequestContextGetter* GetRequestContextForPossibleApp(
206 const Extension* app);
205 void CreateRequestContext(); 207 void CreateRequestContext();
206 // 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
207 // down the IO thread to avoid leaks). 209 // down the IO thread to avoid leaks).
208 void ResetRequestContext(); 210 void ResetRequestContext();
209 211
210 virtual URLRequestContextGetter* GetRequestContextForMedia(); 212 virtual URLRequestContextGetter* GetRequestContextForMedia();
211 virtual URLRequestContextGetter* GetRequestContextForExtensions(); 213 virtual URLRequestContextGetter* GetRequestContextForExtensions();
214 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp(
215 const Extension* installed_app);
212 216
213 virtual net::SSLConfigService* GetSSLConfigService(); 217 virtual net::SSLConfigService* GetSSLConfigService();
214 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 218 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
215 virtual FindBarState* GetFindBarState(); 219 virtual FindBarState* GetFindBarState();
216 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 220 virtual HostContentSettingsMap* GetHostContentSettingsMap();
217 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); 221 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
218 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 222 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
219 virtual HostZoomMap* GetHostZoomMap(); 223 virtual HostZoomMap* GetHostZoomMap();
220 void set_session_service(SessionService* session_service); 224 void set_session_service(SessionService* session_service);
221 virtual SessionService* GetSessionService(); 225 virtual SessionService* GetSessionService();
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 explicit DerivedTestingProfile(Profile* profile); 418 explicit DerivedTestingProfile(Profile* profile);
415 virtual ~DerivedTestingProfile(); 419 virtual ~DerivedTestingProfile();
416 420
417 virtual ProfileId GetRuntimeId(); 421 virtual ProfileId GetRuntimeId();
418 422
419 protected: 423 protected:
420 Profile* original_profile_; 424 Profile* original_profile_;
421 }; 425 };
422 426
423 #endif // CHROME_TEST_TESTING_PROFILE_H_ 427 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698