| 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/renderer/mock_content_renderer_client.h" | 5 #include "content/renderer/mock_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include "v8/include/v8.h" | 8 #include "v8/include/v8.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 SkBitmap* MockContentRendererClient::GetSadPluginBitmap() { | 24 SkBitmap* MockContentRendererClient::GetSadPluginBitmap() { |
| 25 return NULL; | 25 return NULL; |
| 26 } | 26 } |
| 27 | 27 |
| 28 std::string MockContentRendererClient::GetDefaultEncoding() { | 28 std::string MockContentRendererClient::GetDefaultEncoding() { |
| 29 return std::string(); | 29 return std::string(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 WebKit::WebPlugin* MockContentRendererClient::CreatePlugin( | 32 bool MockContentRendererClient::OverrideCreatePlugin( |
| 33 RenderView* render_view, | 33 RenderView* render_view, |
| 34 WebKit::WebFrame* frame, | 34 WebKit::WebFrame* frame, |
| 35 const WebKit::WebPluginParams& params) { | 35 const WebKit::WebPluginParams& params, |
| 36 return NULL; | 36 WebKit::WebPlugin** plugin) { |
| 37 return false; |
| 37 } | 38 } |
| 38 | 39 |
| 39 void MockContentRendererClient::ShowErrorPage(RenderView* render_view, | 40 void MockContentRendererClient::ShowErrorPage(RenderView* render_view, |
| 40 WebKit::WebFrame* frame, | 41 WebKit::WebFrame* frame, |
| 41 int http_status_code) { | 42 int http_status_code) { |
| 42 } | 43 } |
| 43 | 44 |
| 44 std::string MockContentRendererClient::GetNavigationErrorHtml( | 45 std::string MockContentRendererClient::GetNavigationErrorHtml( |
| 45 const WebKit::WebURLRequest& failed_request, | 46 const WebKit::WebURLRequest& failed_request, |
| 46 const WebKit::WebURLError& error) { | 47 const WebKit::WebURLError& error) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 110 } |
| 110 | 111 |
| 111 bool MockContentRendererClient::HandleSetCookieRequest( | 112 bool MockContentRendererClient::HandleSetCookieRequest( |
| 112 RenderView* sender, | 113 RenderView* sender, |
| 113 const GURL& url, | 114 const GURL& url, |
| 114 const GURL& first_party_for_cookies, | 115 const GURL& first_party_for_cookies, |
| 115 const std::string& value) { | 116 const std::string& value) { |
| 116 return false; | 117 return false; |
| 117 } | 118 } |
| 118 } // namespace content | 119 } // namespace content |
| OLD | NEW |