OLD | NEW |
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 "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "content/browser/webui/empty_web_ui_factory.h" | 10 #include "content/browser/webui/empty_web_ui_factory.h" |
| 11 #include "content/test/test_tab_contents_view.h" |
11 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
13 #include "ui/base/clipboard/clipboard.h" | 14 #include "ui/base/clipboard/clipboard.h" |
14 #include "webkit/glue/webpreferences.h" | 15 #include "webkit/glue/webpreferences.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 MockContentBrowserClient::~MockContentBrowserClient() { | 19 MockContentBrowserClient::~MockContentBrowserClient() { |
19 } | 20 } |
20 | 21 |
21 TabContentsView* MockContentBrowserClient::CreateTabContentsView( | 22 TabContentsView* MockContentBrowserClient::CreateTabContentsView( |
22 TabContents* tab_contents) { | 23 TabContents* tab_contents) { |
23 return NULL; | 24 return new TestTabContentsView; |
24 } | 25 } |
25 | 26 |
26 void MockContentBrowserClient::RenderViewHostCreated( | 27 void MockContentBrowserClient::RenderViewHostCreated( |
27 RenderViewHost* render_view_host) { | 28 RenderViewHost* render_view_host) { |
28 } | 29 } |
29 | 30 |
30 void MockContentBrowserClient::BrowserRenderProcessHostCreated( | 31 void MockContentBrowserClient::BrowserRenderProcessHostCreated( |
31 BrowserRenderProcessHost* host) { | 32 BrowserRenderProcessHost* host) { |
32 } | 33 } |
33 | 34 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 #endif | 271 #endif |
271 | 272 |
272 #if defined(USE_NSS) | 273 #if defined(USE_NSS) |
273 crypto::CryptoModuleBlockingPasswordDelegate* | 274 crypto::CryptoModuleBlockingPasswordDelegate* |
274 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 275 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
275 return NULL; | 276 return NULL; |
276 } | 277 } |
277 #endif | 278 #endif |
278 | 279 |
279 } // namespace content | 280 } // namespace content |
OLD | NEW |