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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "content/browser/webui/empty_web_ui_factory.h" | 11 #include "content/browser/webui/empty_web_ui_factory.h" |
12 #include "content/test/test_tab_contents_view.h" | 12 #include "content/test/test_tab_contents_view.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "ui/base/clipboard/clipboard.h" | 15 #include "ui/base/clipboard/clipboard.h" |
16 #include "webkit/glue/webpreferences.h" | 16 #include "webkit/glue/webpreferences.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 MockContentBrowserClient::MockContentBrowserClient() { | 20 MockContentBrowserClient::MockContentBrowserClient() { |
21 } | 21 } |
22 | 22 |
23 MockContentBrowserClient::~MockContentBrowserClient() { | 23 MockContentBrowserClient::~MockContentBrowserClient() { |
24 } | 24 } |
25 | 25 |
26 BrowserMainParts* MockContentBrowserClient::CreateBrowserMainParts( | 26 void MockContentBrowserClient::CreateBrowserMainParts( |
27 const content::MainFunctionParams& parameters) { | 27 const content::MainFunctionParams& parameters, |
28 return NULL; | 28 std::vector<BrowserMainParts*>* parts_list) { |
29 } | 29 } |
30 | 30 |
31 RenderWidgetHostView* MockContentBrowserClient::CreateViewForWidget( | 31 RenderWidgetHostView* MockContentBrowserClient::CreateViewForWidget( |
32 RenderWidgetHost* widget) { | 32 RenderWidgetHost* widget) { |
33 return NULL; | 33 return NULL; |
34 } | 34 } |
35 | 35 |
36 TabContentsView* MockContentBrowserClient::CreateTabContentsView( | 36 TabContentsView* MockContentBrowserClient::CreateTabContentsView( |
37 TabContents* tab_contents) { | 37 TabContents* tab_contents) { |
38 return new TestTabContentsView; | 38 return new TestTabContentsView; |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 #endif | 317 #endif |
318 | 318 |
319 #if defined(USE_NSS) | 319 #if defined(USE_NSS) |
320 crypto::CryptoModuleBlockingPasswordDelegate* | 320 crypto::CryptoModuleBlockingPasswordDelegate* |
321 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 321 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
322 return NULL; | 322 return NULL; |
323 } | 323 } |
324 #endif | 324 #endif |
325 | 325 |
326 } // namespace content | 326 } // namespace content |
OLD | NEW |