| 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/test/test_web_contents_view.h" | 11 #include "content/test/test_web_contents_view.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "ui/base/clipboard/clipboard.h" | 14 #include "ui/base/clipboard/clipboard.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 MockContentBrowserClient::MockContentBrowserClient() { | 18 MockContentBrowserClient::MockContentBrowserClient() { |
| 19 } | 19 } |
| 20 | 20 |
| 21 MockContentBrowserClient::~MockContentBrowserClient() { | 21 MockContentBrowserClient::~MockContentBrowserClient() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 BrowserMainParts* MockContentBrowserClient::CreateBrowserMainParts( | 24 BrowserMainParts* MockContentBrowserClient::CreateBrowserMainParts( |
| 25 const MainFunctionParams& parameters) { | 25 const MainFunctionParams& parameters) { |
| 26 return NULL; | 26 return NULL; |
| 27 } | 27 } |
| 28 | 28 |
| 29 WebContentsView* MockContentBrowserClient::CreateWebContentsView( | 29 WebContentsView* MockContentBrowserClient::OverrideCreateWebContentsView( |
| 30 WebContents* web_contents) { | 30 WebContents* web_contents) { |
| 31 return new TestWebContentsView; | 31 return new TestWebContentsView; |
| 32 } | 32 } |
| 33 | 33 |
| 34 WebContentsViewDelegate* MockContentBrowserClient::GetWebContentsViewDelegate( |
| 35 content::WebContents* web_contents) { |
| 36 return NULL; |
| 37 } |
| 38 |
| 34 void MockContentBrowserClient::RenderViewHostCreated( | 39 void MockContentBrowserClient::RenderViewHostCreated( |
| 35 RenderViewHost* render_view_host) { | 40 RenderViewHost* render_view_host) { |
| 36 } | 41 } |
| 37 | 42 |
| 38 void MockContentBrowserClient::RenderProcessHostCreated( | 43 void MockContentBrowserClient::RenderProcessHostCreated( |
| 39 RenderProcessHost* host) { | 44 RenderProcessHost* host) { |
| 40 } | 45 } |
| 41 | 46 |
| 42 WebUIControllerFactory* MockContentBrowserClient::GetWebUIControllerFactory() { | 47 WebUIControllerFactory* MockContentBrowserClient::GetWebUIControllerFactory() { |
| 43 return NULL; | 48 return NULL; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 #endif | 331 #endif |
| 327 | 332 |
| 328 #if defined(USE_NSS) | 333 #if defined(USE_NSS) |
| 329 crypto::CryptoModuleBlockingPasswordDelegate* | 334 crypto::CryptoModuleBlockingPasswordDelegate* |
| 330 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 335 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 331 return NULL; | 336 return NULL; |
| 332 } | 337 } |
| 333 #endif | 338 #endif |
| 334 | 339 |
| 335 } // namespace content | 340 } // namespace content |
| OLD | NEW |