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

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

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 7 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/shell/shell_content_renderer_client.h ('k') | webkit/plugins/npapi/webplugin_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/shell/shell_render_process_observer.h" 7 #include "content/shell/shell_render_process_observer.h"
8 #include "content/shell/shell_render_view_observer.h" 8 #include "content/shell/shell_render_view_observer.h"
9 #include "v8/include/v8.h" 9 #include "v8/include/v8.h"
10 10
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 bool ShellContentRendererClient::OverrideCreatePlugin( 38 bool ShellContentRendererClient::OverrideCreatePlugin(
39 RenderView* render_view, 39 RenderView* render_view,
40 WebKit::WebFrame* frame, 40 WebKit::WebFrame* frame,
41 const WebKit::WebPluginParams& params, 41 const WebKit::WebPluginParams& params,
42 WebKit::WebPlugin** plugin) { 42 WebKit::WebPlugin** plugin) {
43 return false; 43 return false;
44 } 44 }
45 45
46 WebKit::WebPlugin* ShellContentRendererClient::CreatePluginReplacement(
47 RenderView* render_view,
48 const FilePath& plugin_path) {
49 return NULL;
50 }
51
46 bool ShellContentRendererClient::HasErrorPage(int http_status_code, 52 bool ShellContentRendererClient::HasErrorPage(int http_status_code,
47 std::string* error_domain) { 53 std::string* error_domain) {
48 return false; 54 return false;
49 } 55 }
50 56
51 void ShellContentRendererClient::GetNavigationErrorStrings( 57 void ShellContentRendererClient::GetNavigationErrorStrings(
52 const WebKit::WebURLRequest& failed_request, 58 const WebKit::WebURLRequest& failed_request,
53 const WebKit::WebURLError& error, 59 const WebKit::WebURLError& error,
54 std::string* error_html, 60 std::string* error_html,
55 string16* error_description) { 61 string16* error_description) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const GURL& first_party_for_cookies, 142 const GURL& first_party_for_cookies,
137 const std::string& value) { 143 const std::string& value) {
138 return false; 144 return false;
139 } 145 }
140 146
141 void ShellContentRendererClient::RegisterPPAPIInterfaceFactories( 147 void ShellContentRendererClient::RegisterPPAPIInterfaceFactories(
142 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { 148 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {
143 } 149 }
144 150
145 } // namespace content 151 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | webkit/plugins/npapi/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698