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

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

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac/cros browsertests Created 8 years, 10 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/ui/views/wrench_menu.cc ('k') | chrome/test/base/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because 157 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because
158 // of the special memory management considerations for the 158 // of the special memory management considerations for the
159 // TestURLRequestContextGetter class, many tests would find themseleves 159 // TestURLRequestContextGetter class, many tests would find themseleves
160 // leaking if they called this method without the necessary IO thread. This 160 // leaking if they called this method without the necessary IO thread. This
161 // getter is currently only capable of returning a Context that helps test 161 // getter is currently only capable of returning a Context that helps test
162 // the CookieMonster. See implementation comments for more details. 162 // the CookieMonster. See implementation comments for more details.
163 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 163 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
164 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 164 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
165 int renderer_child_id) OVERRIDE; 165 int renderer_child_id) OVERRIDE;
166 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 166 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
167 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE;
168 virtual content::GeolocationPermissionContext* 167 virtual content::GeolocationPermissionContext*
169 GetGeolocationPermissionContext() OVERRIDE; 168 GetGeolocationPermissionContext() OVERRIDE;
170 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; 169 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE;
171 virtual bool DidLastSessionExitCleanly() OVERRIDE; 170 virtual bool DidLastSessionExitCleanly() OVERRIDE;
172 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 171 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
173 172
174 virtual TestingProfile* AsTestingProfile() OVERRIDE; 173 virtual TestingProfile* AsTestingProfile() OVERRIDE;
175 virtual std::string GetProfileName() OVERRIDE; 174 virtual std::string GetProfileName() OVERRIDE;
176 void set_incognito(bool incognito) { incognito_ = incognito; } 175 void set_incognito(bool incognito) { incognito_ = incognito; }
177 // Assumes ownership. 176 // Assumes ownership.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // testing. 384 // testing.
386 ProfileDependencyManager* profile_dependency_manager_; 385 ProfileDependencyManager* profile_dependency_manager_;
387 386
388 scoped_ptr<content::MockResourceContext> resource_context_; 387 scoped_ptr<content::MockResourceContext> resource_context_;
389 388
390 // Weak pointer to a delegate for indicating that a profile was created. 389 // Weak pointer to a delegate for indicating that a profile was created.
391 Delegate* delegate_; 390 Delegate* delegate_;
392 }; 391 };
393 392
394 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 393 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698