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

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

Issue 6880089: Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. Ext... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser tests 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
« no previous file with comments | « chrome/browser/sidebar/sidebar_container.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 // Returns a testing ContextGetter (if one has been created via 194 // Returns a testing ContextGetter (if one has been created via
195 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: 195 // CreateRequestContext) or NULL. This is not done on-demand for two reasons:
196 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because 196 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because
197 // of the special memory management considerations for the 197 // of the special memory management considerations for the
198 // TestURLRequestContextGetter class, many tests would find themseleves 198 // TestURLRequestContextGetter class, many tests would find themseleves
199 // leaking if they called this method without the necessary IO thread. This 199 // leaking if they called this method without the necessary IO thread. This
200 // getter is currently only capable of returning a Context that helps test 200 // getter is currently only capable of returning a Context that helps test
201 // the CookieMonster. See implementation comments for more details. 201 // the CookieMonster. See implementation comments for more details.
202 virtual net::URLRequestContextGetter* GetRequestContext(); 202 virtual net::URLRequestContextGetter* GetRequestContext();
203 virtual net::URLRequestContextGetter* GetRequestContextForPossibleApp( 203 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
204 const Extension* installed_app); 204 int renderer_child_id);
205 void CreateRequestContext(); 205 void CreateRequestContext();
206 // Clears out the created request context (which must be done before shutting 206 // Clears out the created request context (which must be done before shutting
207 // down the IO thread to avoid leaks). 207 // down the IO thread to avoid leaks).
208 void ResetRequestContext(); 208 void ResetRequestContext();
209 209
210 virtual net::URLRequestContextGetter* GetRequestContextForMedia(); 210 virtual net::URLRequestContextGetter* GetRequestContextForMedia();
211 virtual net::URLRequestContextGetter* GetRequestContextForExtensions(); 211 virtual net::URLRequestContextGetter* GetRequestContextForExtensions();
212 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 212 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
213 const std::string& app_id); 213 const std::string& app_id);
214 214
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 explicit DerivedTestingProfile(Profile* profile); 415 explicit DerivedTestingProfile(Profile* profile);
416 virtual ~DerivedTestingProfile(); 416 virtual ~DerivedTestingProfile();
417 417
418 virtual ProfileId GetRuntimeId(); 418 virtual ProfileId GetRuntimeId();
419 419
420 protected: 420 protected:
421 Profile* original_profile_; 421 Profile* original_profile_;
422 }; 422 };
423 423
424 #endif // CHROME_TEST_TESTING_PROFILE_H_ 424 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sidebar/sidebar_container.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698