summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-08 01:40:13 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-08 01:40:13 +0000
commite6a2ce57d998f2e436d584c264efb3d02b06018e (patch)
tree75e4703b676dc48880090865834364ea844360a4 /content/public
parenta813c8e4868ecd41fe76a387b9a5a92a2f7fe67c (diff)
downloadchromium_src-e6a2ce57d998f2e436d584c264efb3d02b06018e.zip
chromium_src-e6a2ce57d998f2e436d584c264efb3d02b06018e.tar.gz
chromium_src-e6a2ce57d998f2e436d584c264efb3d02b06018e.tar.bz2
Simplify embedder API around showing custom error pages so that the embedder doesn't have to call content back in its callback. This removes one method from RenderView that we need to expose in its API.
BUG=98716 Review URL: http://codereview.chromium.org/8198021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r--content/public/renderer/content_renderer_client.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 3ed428b..9855ee0 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -62,10 +62,12 @@ class ContentRendererClient {
const WebKit::WebPluginParams& params,
WebKit::WebPlugin** plugin) = 0;
- // Give the embedder the ability to set an error page.
- virtual void ShowErrorPage(RenderView* render_view,
- WebKit::WebFrame* frame,
- int http_status_code) = 0;
+ // Returns true if the embedder has an error page to show for the given http
+ // status code. If so |error_domain| should be set to according to WebURLError
+ // and the embedder's GetNavigationErrorHtml will be called afterwards to get
+ // the error html.
+ virtual bool HasErrorPage(int http_status_code,
+ std::string* error_domain) = 0;
// Returns the html to display when a navigation error occurs.
virtual std::string GetNavigationErrorHtml(