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

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

Issue 23455047: InstantExtended: Send search URLs to renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing files. Created 7 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
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 #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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 RenderView* render_view, 92 RenderView* render_view,
93 const base::FilePath& plugin_path); 93 const base::FilePath& plugin_path);
94 94
95 // Returns true if the embedder has an error page to show for the given http 95 // Returns true if the embedder has an error page to show for the given http
96 // status code. If so |error_domain| should be set to according to WebURLError 96 // status code. If so |error_domain| should be set to according to WebURLError
97 // and the embedder's GetNavigationErrorHtml will be called afterwards to get 97 // and the embedder's GetNavigationErrorHtml will be called afterwards to get
98 // the error html. 98 // the error html.
99 virtual bool HasErrorPage(int http_status_code, 99 virtual bool HasErrorPage(int http_status_code,
100 std::string* error_domain); 100 std::string* error_domain);
101 101
102 // Returns true if the embedder prefers not to show an error page for a failed
103 // navigation to |url|.
104 virtual bool ShouldSuppressErrorPage(const GURL& url);
105
102 // Returns the information to display when a navigation error occurs. 106 // Returns the information to display when a navigation error occurs.
103 // If |error_html| is not null then it may be set to a HTML page containing 107 // If |error_html| is not null then it may be set to a HTML page containing
104 // the details of the error and maybe links to more info. 108 // the details of the error and maybe links to more info.
105 // If |error_description| is not null it may be set to contain a brief 109 // If |error_description| is not null it may be set to contain a brief
106 // message describing the error that has occurred. 110 // message describing the error that has occurred.
107 // Either of the out parameters may be not written to in certain cases 111 // Either of the out parameters may be not written to in certain cases
108 // (lack of information on the error code) so the caller should take care to 112 // (lack of information on the error code) so the caller should take care to
109 // initialize the string values with safe defaults before the call. 113 // initialize the string values with safe defaults before the call.
110 virtual void GetNavigationErrorStrings( 114 virtual void GetNavigationErrorStrings(
111 WebKit::WebFrame* frame, 115 WebKit::WebFrame* frame,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 257
254 // Returns true if we should apply the cross-site document blocking policy to 258 // Returns true if we should apply the cross-site document blocking policy to
255 // this renderer process. Currently, we apply the policy only to a renderer 259 // this renderer process. Currently, we apply the policy only to a renderer
256 // process running on a normal page from the web. 260 // process running on a normal page from the web.
257 virtual bool ShouldEnableSiteIsolationPolicy() const; 261 virtual bool ShouldEnableSiteIsolationPolicy() const;
258 }; 262 };
259 263
260 } // namespace content 264 } // namespace content
261 265
262 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 266 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698