OLD | NEW |
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // the details of the error and maybe links to more info. | 106 // 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 | 107 // If |error_description| is not null it may be set to contain a brief |
108 // message describing the error that has occurred. | 108 // message describing the error that has occurred. |
109 // Either of the out parameters may be not written to in certain cases | 109 // 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 | 110 // (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. | 111 // initialize the string values with safe defaults before the call. |
112 virtual void GetNavigationErrorStrings( | 112 virtual void GetNavigationErrorStrings( |
113 WebKit::WebFrame* frame, | 113 WebKit::WebFrame* frame, |
114 const WebKit::WebURLRequest& failed_request, | 114 const WebKit::WebURLRequest& failed_request, |
115 const WebKit::WebURLError& error, | 115 const WebKit::WebURLError& error, |
| 116 const std::string& accept_languages, |
116 std::string* error_html, | 117 std::string* error_html, |
117 string16* error_description) {} | 118 string16* error_description) {} |
118 | 119 |
119 // Allows the embedder to control when media resources are loaded. Embedders | 120 // Allows the embedder to control when media resources are loaded. Embedders |
120 // can run |closure| immediately if they don't wish to defer media resource | 121 // can run |closure| immediately if they don't wish to defer media resource |
121 // loading. | 122 // loading. |
122 virtual void DeferMediaLoad(RenderView* render_view, | 123 virtual void DeferMediaLoad(RenderView* render_view, |
123 const base::Closure& closure); | 124 const base::Closure& closure); |
124 | 125 |
125 // Allows the embedder to override creating a WebMediaStreamCenter. If it | 126 // Allows the embedder to override creating a WebMediaStreamCenter. If it |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 263 |
263 // Returns true if we should apply the cross-site document blocking policy to | 264 // 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 | 265 // this renderer process. Currently, we apply the policy only to a renderer |
265 // process running on a normal page from the web. | 266 // process running on a normal page from the web. |
266 virtual bool ShouldEnableSiteIsolationPolicy() const; | 267 virtual bool ShouldEnableSiteIsolationPolicy() const; |
267 }; | 268 }; |
268 | 269 |
269 } // namespace content | 270 } // namespace content |
270 | 271 |
271 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 272 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |