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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 8142032: Add error description to the DidFailProvisionalLoad callback. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase 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/common/view_messages.h ('k') | content/renderer/mock_content_renderer_client.h » ('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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const WebKit::WebPluginParams& params, 63 const WebKit::WebPluginParams& params,
64 WebKit::WebPlugin** plugin) = 0; 64 WebKit::WebPlugin** plugin) = 0;
65 65
66 // Returns true if the embedder has an error page to show for the given http 66 // Returns true if the embedder has an error page to show for the given http
67 // status code. If so |error_domain| should be set to according to WebURLError 67 // status code. If so |error_domain| should be set to according to WebURLError
68 // and the embedder's GetNavigationErrorHtml will be called afterwards to get 68 // and the embedder's GetNavigationErrorHtml will be called afterwards to get
69 // the error html. 69 // the error html.
70 virtual bool HasErrorPage(int http_status_code, 70 virtual bool HasErrorPage(int http_status_code,
71 std::string* error_domain) = 0; 71 std::string* error_domain) = 0;
72 72
73 // Returns the html to display when a navigation error occurs. 73 // Returns the information to display when a navigation error occurs.
74 virtual std::string GetNavigationErrorHtml( 74 // If |error_html| is not null then it may be set to a HTML page containing
75 // the details of the error and maybe links to more info.
76 // If |error_description| is not null it may be set to contain a brief
77 // message describing the error that has occurred.
78 // Either of the out parameters may be not written to in certain cases
79 // (lack of information on the error code) so the caller should take care to
80 // initialize the string values with safe defaults before the call.
81 virtual void GetNavigationErrorStrings(
75 const WebKit::WebURLRequest& failed_request, 82 const WebKit::WebURLRequest& failed_request,
76 const WebKit::WebURLError& error) = 0; 83 const WebKit::WebURLError& error,
84 std::string* error_html,
85 string16* error_description) = 0;
77 86
78 // Returns true if the renderer process should schedule the idle handler when 87 // Returns true if the renderer process should schedule the idle handler when
79 // all widgets are hidden. 88 // all widgets are hidden.
80 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; 89 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0;
81 90
82 // Returns true if the given url can create popup windows. 91 // Returns true if the given url can create popup windows.
83 virtual bool AllowPopup(const GURL& creator) = 0; 92 virtual bool AllowPopup(const GURL& creator) = 0;
84 93
85 // Returns true if we should fork a new process for the given navigation. 94 // Returns true if we should fork a new process for the given navigation.
86 virtual bool ShouldFork(WebKit::WebFrame* frame, 95 virtual bool ShouldFork(WebKit::WebFrame* frame,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const std::string& value) = 0; 140 const std::string& value) = 0;
132 141
133 // True if the protocol implemented to serve |url| supports features required 142 // True if the protocol implemented to serve |url| supports features required
134 // by the media engine. 143 // by the media engine.
135 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; 144 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0;
136 }; 145 };
137 146
138 } // namespace content 147 } // namespace content
139 148
140 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 149 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/mock_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698