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

Side by Side Diff: content/shell/shell_content_renderer_client.cc

Issue 7977014: Make plugins work in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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/content_shell.gypi ('k') | no next file » | 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/shell/shell_content_renderer_client.h" 5 #include "content/shell/shell_content_renderer_client.h"
6 6
7 #include "content/renderer/render_view.h"
7 #include "v8/include/v8.h" 8 #include "v8/include/v8.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 ShellContentRendererClient::~ShellContentRendererClient() { 12 ShellContentRendererClient::~ShellContentRendererClient() {
12 } 13 }
13 14
14 void ShellContentRendererClient::RenderThreadStarted() { 15 void ShellContentRendererClient::RenderThreadStarted() {
15 } 16 }
16 17
17 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) { 18 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) {
18 } 19 }
19 20
20 void ShellContentRendererClient::SetNumberOfViews(int number_of_views) { 21 void ShellContentRendererClient::SetNumberOfViews(int number_of_views) {
21 } 22 }
22 23
23 SkBitmap* ShellContentRendererClient::GetSadPluginBitmap() { 24 SkBitmap* ShellContentRendererClient::GetSadPluginBitmap() {
24 return NULL; 25 return NULL;
25 } 26 }
26 27
27 std::string ShellContentRendererClient::GetDefaultEncoding() { 28 std::string ShellContentRendererClient::GetDefaultEncoding() {
28 return std::string(); 29 return std::string();
29 } 30 }
30 31
31 WebKit::WebPlugin* ShellContentRendererClient::CreatePlugin( 32 WebKit::WebPlugin* ShellContentRendererClient::CreatePlugin(
32 RenderView* render_view, 33 RenderView* render_view,
33 WebKit::WebFrame* frame, 34 WebKit::WebFrame* frame,
34 const WebKit::WebPluginParams& params) { 35 const WebKit::WebPluginParams& params) {
35 return NULL; 36 return render_view->CreatePluginNoCheck(frame, params);
36 } 37 }
37 38
38 void ShellContentRendererClient::ShowErrorPage(RenderView* render_view, 39 void ShellContentRendererClient::ShowErrorPage(RenderView* render_view,
39 WebKit::WebFrame* frame, 40 WebKit::WebFrame* frame,
40 int http_status_code) { 41 int http_status_code) {
41 } 42 }
42 43
43 std::string ShellContentRendererClient::GetNavigationErrorHtml( 44 std::string ShellContentRendererClient::GetNavigationErrorHtml(
44 const WebKit::WebURLRequest& failed_request, 45 const WebKit::WebURLRequest& failed_request,
45 const WebKit::WebURLError& error) { 46 const WebKit::WebURLError& error) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 bool ShellContentRendererClient::HandleSetCookieRequest( 115 bool ShellContentRendererClient::HandleSetCookieRequest(
115 RenderView* sender, 116 RenderView* sender,
116 const GURL& url, 117 const GURL& url,
117 const GURL& first_party_for_cookies, 118 const GURL& first_party_for_cookies,
118 const std::string& value) { 119 const std::string& value) {
119 return false; 120 return false;
120 } 121 }
121 122
122 } // namespace content 123 } // namespace content
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698