Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: content/renderer/mock_content_renderer_client.cc

Issue 8095007: Defer loading of audio/video tags while prerendering. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixing test for release build. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/mock_content_renderer_client.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::OverrideCreateWebMediaPlayer(
46 RenderView* render_view,
47 WebKit::WebMediaPlayerClient* client,
48 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate,
49 media::FilterCollection* collection,
50 media::MessageLoopFactory* message_loop_factory,
51 webkit_media::MediaStreamClient* media_stream_client,
52 media::MediaLog* media_log,
53 webkit_media::WebMediaPlayerImpl** player) {
54 return false;
55 }
56
45 void MockContentRendererClient::GetNavigationErrorStrings( 57 void MockContentRendererClient::GetNavigationErrorStrings(
46 const WebKit::WebURLRequest& failed_request, 58 const WebKit::WebURLRequest& failed_request,
47 const WebKit::WebURLError& error, 59 const WebKit::WebURLError& error,
48 std::string* error_html, 60 std::string* error_html,
49 string16* error_description) { 61 string16* error_description) {
50 } 62 }
51 63
52 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 64 bool MockContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
53 return true; 65 return true;
54 } 66 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 132
121 void MockContentRendererClient::RegisterPPAPIInterfaceFactories( 133 void MockContentRendererClient::RegisterPPAPIInterfaceFactories(
122 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { 134 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {
123 } 135 }
124 136
125 bool MockContentRendererClient::AllowSocketAPI(const GURL& url) { 137 bool MockContentRendererClient::AllowSocketAPI(const GURL& url) {
126 return false; 138 return false;
127 } 139 }
128 140
129 } // namespace content 141 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mock_content_renderer_client.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698