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