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

Side by Side Diff: content/browser/mock_content_browser_client.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 years, 5 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 #include "content/browser/mock_content_browser_client.h" 5 #include "content/browser/mock_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/browser/webui/empty_web_ui_factory.h" 9 #include "content/browser/webui/empty_web_ui_factory.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 20 matching lines...) Expand all
31 31
32 void MockContentBrowserClient::WorkerProcessHostCreated( 32 void MockContentBrowserClient::WorkerProcessHostCreated(
33 WorkerProcessHost* host) { 33 WorkerProcessHost* host) {
34 } 34 }
35 35
36 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { 36 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() {
37 // Return an empty factory so callsites don't have to check for NULL. 37 // Return an empty factory so callsites don't have to check for NULL.
38 return EmptyWebUIFactory::Get(); 38 return EmptyWebUIFactory::Get();
39 } 39 }
40 40
41 GURL MockContentBrowserClient::GetEffectiveURL(Profile* profile, 41 GURL MockContentBrowserClient::GetEffectiveURL(
42 const GURL& url) { 42 content::BrowserContext* browser_context, const GURL& url) {
43 return GURL(); 43 return GURL();
44 } 44 }
45 45
46 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { 46 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) {
47 return false; 47 return false;
48 } 48 }
49 49
50 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( 50 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName(
51 const std::string& alias_name) { 51 const std::string& alias_name) {
52 return std::string(); 52 return std::string();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 186
187 DevToolsManager* MockContentBrowserClient::GetDevToolsManager() { 187 DevToolsManager* MockContentBrowserClient::GetDevToolsManager() {
188 return NULL; 188 return NULL;
189 } 189 }
190 190
191 bool MockContentBrowserClient::IsFastShutdownPossible() { 191 bool MockContentBrowserClient::IsFastShutdownPossible() {
192 return true; 192 return true;
193 } 193 }
194 194
195 WebPreferences MockContentBrowserClient::GetWebkitPrefs(Profile* profile, 195 WebPreferences MockContentBrowserClient::GetWebkitPrefs(
196 bool is_web_ui) { 196 content::BrowserContext* browser_context,
197 bool is_web_ui) {
197 return WebPreferences(); 198 return WebPreferences();
198 } 199 }
199 200
200 void MockContentBrowserClient::UpdateInspectorSetting( 201 void MockContentBrowserClient::UpdateInspectorSetting(
201 RenderViewHost* rvh, const std::string& key, const std::string& value) { 202 RenderViewHost* rvh, const std::string& key, const std::string& value) {
202 } 203 }
203 204
204 void MockContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { 205 void MockContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) {
205 } 206 }
206 207
(...skipping 21 matching lines...) Expand all
228 #endif 229 #endif
229 230
230 #if defined(USE_NSS) 231 #if defined(USE_NSS)
231 crypto::CryptoModuleBlockingPasswordDelegate* 232 crypto::CryptoModuleBlockingPasswordDelegate*
232 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 233 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
233 return NULL; 234 return NULL;
234 } 235 }
235 #endif 236 #endif
236 237
237 } // namespace content 238 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698