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

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

Issue 7972018: Don't depend on the embedder creating a plugin. That way embedders can always provide an empty Co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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.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 11 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « content/renderer/mock_content_renderer_client.h ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698