| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 RenderView* render_view, | 60 RenderView* render_view, |
| 61 WebKit::WebFrame* frame, | 61 WebKit::WebFrame* frame, |
| 62 const WebKit::WebPluginParams& params, | 62 const WebKit::WebPluginParams& params, |
| 63 WebKit::WebPlugin** plugin) = 0; | 63 WebKit::WebPlugin** plugin) = 0; |
| 64 | 64 |
| 65 // Give the embedder the ability to set an error page. | 65 // Give the embedder the ability to set an error page. |
| 66 virtual void ShowErrorPage(RenderView* render_view, | 66 virtual void ShowErrorPage(RenderView* render_view, |
| 67 WebKit::WebFrame* frame, | 67 WebKit::WebFrame* frame, |
| 68 int http_status_code) = 0; | 68 int http_status_code) = 0; |
| 69 | 69 |
| 70 // Returns the html to display when a navigation error occurs. | 70 // Returns the information to display when a navigation error occurs. |
| 71 virtual std::string GetNavigationErrorHtml( | 71 // If |error_html| is not null then it will be set to a HTML page containing |
| 72 // the details of the error and maybe links to more info. |
| 73 // If |error_description| is not null it will be set to contain a brief |
| 74 // message describing the error that has occurred. |
| 75 virtual void GetNavigationErrorStrings( |
| 72 const WebKit::WebURLRequest& failed_request, | 76 const WebKit::WebURLRequest& failed_request, |
| 73 const WebKit::WebURLError& error) = 0; | 77 const WebKit::WebURLError& error, |
| 78 std::string* error_html, |
| 79 string16* error_description) = 0; |
| 74 | 80 |
| 75 // Returns true if the renderer process should schedule the idle handler when | 81 // Returns true if the renderer process should schedule the idle handler when |
| 76 // all widgets are hidden. | 82 // all widgets are hidden. |
| 77 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; | 83 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; |
| 78 | 84 |
| 79 // Returns true if the given url can create popup windows. | 85 // Returns true if the given url can create popup windows. |
| 80 virtual bool AllowPopup(const GURL& creator) = 0; | 86 virtual bool AllowPopup(const GURL& creator) = 0; |
| 81 | 87 |
| 82 // Returns true if we should fork a new process for the given navigation. | 88 // Returns true if we should fork a new process for the given navigation. |
| 83 virtual bool ShouldFork(WebKit::WebFrame* frame, | 89 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const std::string& value) = 0; | 134 const std::string& value) = 0; |
| 129 | 135 |
| 130 // True if the protocol implemented to serve |url| supports features required | 136 // True if the protocol implemented to serve |url| supports features required |
| 131 // by the media engine. | 137 // by the media engine. |
| 132 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; | 138 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; |
| 133 }; | 139 }; |
| 134 | 140 |
| 135 } // namespace content | 141 } // namespace content |
| 136 | 142 |
| 137 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 143 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |