| 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 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool MockContentRendererClient::OverrideCreatePlugin( | 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 WebKit::WebPlugin** plugin) { | 36 WebKit::WebPlugin** plugin) { |
| 37 return false; | 37 return false; |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool MockContentRendererClient::ShouldOverrideCreateWebMediaPlayer( |
| 41 RenderView* view) { |
| 42 return false; |
| 43 } |
| 44 |
| 45 void MockContentRendererClient::OverrideCreateWebMediaPlayer( |
| 46 RenderView* render_view, |
| 47 WebKit::WebMediaPlayerClient* client, |
| 48 media::FilterCollection* collection, |
| 49 media::MessageLoopFactory* message_loop_factory, |
| 50 webkit_glue::MediaStreamClient* media_stream_client, |
| 51 media::MediaLog* media_log, |
| 52 webkit_glue::WebMediaPlayerImpl** player) { |
| 53 } |
| 54 |
| 40 void MockContentRendererClient::ShowErrorPage(RenderView* render_view, | 55 void MockContentRendererClient::ShowErrorPage(RenderView* render_view, |
| 41 WebKit::WebFrame* frame, | 56 WebKit::WebFrame* frame, |
| 42 int http_status_code) { | 57 int http_status_code) { |
| 43 } | 58 } |
| 44 | 59 |
| 45 std::string MockContentRendererClient::GetNavigationErrorHtml( | 60 std::string MockContentRendererClient::GetNavigationErrorHtml( |
| 46 const WebKit::WebURLRequest& failed_request, | 61 const WebKit::WebURLRequest& failed_request, |
| 47 const WebKit::WebURLError& error) { | 62 const WebKit::WebURLError& error) { |
| 48 return std::string(); | 63 return std::string(); |
| 49 } | 64 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const GURL& first_party_for_cookies, | 130 const GURL& first_party_for_cookies, |
| 116 const std::string& value) { | 131 const std::string& value) { |
| 117 return false; | 132 return false; |
| 118 } | 133 } |
| 119 | 134 |
| 120 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { | 135 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { |
| 121 return false; | 136 return false; |
| 122 } | 137 } |
| 123 | 138 |
| 124 } // namespace content | 139 } // namespace content |
| OLD | NEW |