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 24 matching lines...) Expand all Loading... |
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::HasErrorPage(int http_status_code, | 40 bool MockContentRendererClient::HasErrorPage(int http_status_code, |
41 std::string* error_domain) { | 41 std::string* error_domain) { |
42 return false; | 42 return false; |
43 } | 43 } |
44 | 44 |
| 45 bool MockContentRendererClient::ShouldOverrideCreateWebMediaPlayer( |
| 46 RenderView* view) { |
| 47 return false; |
| 48 } |
| 49 |
| 50 void MockContentRendererClient::OverrideCreateWebMediaPlayer( |
| 51 RenderView* render_view, |
| 52 WebKit::WebMediaPlayerClient* client, |
| 53 base::WeakPtr<webkit_glue::WebMediaPlayerDelegate> delegate, |
| 54 media::FilterCollection* collection, |
| 55 media::MessageLoopFactory* message_loop_factory, |
| 56 webkit_glue::MediaStreamClient* media_stream_client, |
| 57 media::MediaLog* media_log, |
| 58 webkit_glue::WebMediaPlayerImpl** player) { |
| 59 } |
| 60 |
45 void MockContentRendererClient::GetNavigationErrorStrings( | 61 void MockContentRendererClient::GetNavigationErrorStrings( |
46 const WebKit::WebURLRequest& failed_request, | 62 const WebKit::WebURLRequest& failed_request, |
47 const WebKit::WebURLError& error, | 63 const WebKit::WebURLError& error, |
48 std::string* error_html, | 64 std::string* error_html, |
49 string16* error_description) { | 65 string16* error_description) { |
50 } | 66 } |
51 | 67 |
52 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { | 68 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { |
53 return true; | 69 return true; |
54 } | 70 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 136 |
121 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { | 137 bool MockContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { |
122 return false; | 138 return false; |
123 } | 139 } |
124 | 140 |
125 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( | 141 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( |
126 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 142 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
127 } | 143 } |
128 | 144 |
129 } // namespace content | 145 } // namespace content |
OLD | NEW |