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

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: More browsertest fixes Created 7 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
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 #include <vector> 9 #include <vector>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 RenderView* render_view, 94 RenderView* render_view,
95 const base::FilePath& plugin_path); 95 const base::FilePath& plugin_path);
96 96
97 // Returns true if the embedder has an error page to show for the given http 97 // Returns true if the embedder has an error page to show for the given http
98 // status code. If so |error_domain| should be set to according to WebURLError 98 // status code. If so |error_domain| should be set to according to WebURLError
99 // and the embedder's GetNavigationErrorHtml will be called afterwards to get 99 // and the embedder's GetNavigationErrorHtml will be called afterwards to get
100 // the error html. 100 // the error html.
101 virtual bool HasErrorPage(int http_status_code, 101 virtual bool HasErrorPage(int http_status_code,
102 std::string* error_domain); 102 std::string* error_domain);
103 103
104 // Returns true if the embedder prefers not to show an error page for a failed
105 // navigation to |url|.
106 virtual bool ShouldSuppressErrorPage(const GURL& url);
107
104 // Returns the information to display when a navigation error occurs. 108 // Returns the information to display when a navigation error occurs.
105 // If |error_html| is not null then it may be set to a HTML page containing 109 // If |error_html| is not null then it may be set to a HTML page containing
106 // the details of the error and maybe links to more info. 110 // the details of the error and maybe links to more info.
107 // If |error_description| is not null it may be set to contain a brief 111 // If |error_description| is not null it may be set to contain a brief
108 // message describing the error that has occurred. 112 // message describing the error that has occurred.
109 // Either of the out parameters may be not written to in certain cases 113 // Either of the out parameters may be not written to in certain cases
110 // (lack of information on the error code) so the caller should take care to 114 // (lack of information on the error code) so the caller should take care to
111 // initialize the string values with safe defaults before the call. 115 // initialize the string values with safe defaults before the call.
112 virtual void GetNavigationErrorStrings( 116 virtual void GetNavigationErrorStrings(
113 WebKit::WebFrame* frame, 117 WebKit::WebFrame* frame,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 266
263 // Returns true if we should apply the cross-site document blocking policy to 267 // Returns true if we should apply the cross-site document blocking policy to
264 // this renderer process. Currently, we apply the policy only to a renderer 268 // this renderer process. Currently, we apply the policy only to a renderer
265 // process running on a normal page from the web. 269 // process running on a normal page from the web.
266 virtual bool ShouldEnableSiteIsolationPolicy() const; 270 virtual bool ShouldEnableSiteIsolationPolicy() const;
267 }; 271 };
268 272
269 } // namespace content 273 } // namespace content
270 274
271 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 275 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox/search_bouncer_unittest.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698