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

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

Issue 9288074: Rename WebUIFactory to WebUIControllerFactory since that's what it creates now. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: blah Created 8 years, 11 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) 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 #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 "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "content/browser/webui/empty_web_ui_factory.h"
12 #include "content/test/test_web_contents_view.h" 11 #include "content/test/test_web_contents_view.h"
13 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 13 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "ui/base/clipboard/clipboard.h" 14 #include "ui/base/clipboard/clipboard.h"
16 #include "webkit/glue/webpreferences.h" 15 #include "webkit/glue/webpreferences.h"
17 16
18 namespace content { 17 namespace content {
19 18
20 MockContentBrowserClient::MockContentBrowserClient() { 19 MockContentBrowserClient::MockContentBrowserClient() {
21 } 20 }
(...skipping 12 matching lines...) Expand all
34 } 33 }
35 34
36 void MockContentBrowserClient::RenderViewHostCreated( 35 void MockContentBrowserClient::RenderViewHostCreated(
37 RenderViewHost* render_view_host) { 36 RenderViewHost* render_view_host) {
38 } 37 }
39 38
40 void MockContentBrowserClient::RenderProcessHostCreated( 39 void MockContentBrowserClient::RenderProcessHostCreated(
41 RenderProcessHost* host) { 40 RenderProcessHost* host) {
42 } 41 }
43 42
44 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { 43 WebUIControllerFactory* MockContentBrowserClient::GetWebUIControllerFactory() {
45 // Return an empty factory so callsites don't have to check for NULL. 44 return NULL;
46 return EmptyWebUIFactory::GetInstance();
47 } 45 }
48 46
49 GURL MockContentBrowserClient::GetEffectiveURL( 47 GURL MockContentBrowserClient::GetEffectiveURL(
50 content::BrowserContext* browser_context, const GURL& url) { 48 content::BrowserContext* browser_context, const GURL& url) {
51 return url; 49 return url;
52 } 50 }
53 51
54 bool MockContentBrowserClient::ShouldUseProcessPerSite( 52 bool MockContentBrowserClient::ShouldUseProcessPerSite(
55 BrowserContext* browser_context, const GURL& effective_url) { 53 BrowserContext* browser_context, const GURL& effective_url) {
56 return false; 54 return false;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 #endif 306 #endif
309 307
310 #if defined(USE_NSS) 308 #if defined(USE_NSS)
311 crypto::CryptoModuleBlockingPasswordDelegate* 309 crypto::CryptoModuleBlockingPasswordDelegate*
312 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 310 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
313 return NULL; 311 return NULL;
314 } 312 }
315 #endif 313 #endif
316 314
317 } // namespace content 315 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698