OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |