Chromium Code Reviews| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 html to display when a navigation error occurs. |
| 71 virtual std::string GetNavigationErrorHtml( | 71 virtual std::string GetNavigationErrorHtml( |
| 72 const WebKit::WebURLRequest& failed_request, | 72 const WebKit::WebURLRequest& failed_request, |
| 73 const WebKit::WebURLError& error) = 0; | 73 const WebKit::WebURLError& error) = 0; |
| 74 | 74 |
| 75 // Returns the error message that is shown when a navigation error occurs. | |
| 76 virtual string16 GetNavigationErrorDescription( | |
|
jam
2011/10/05 17:12:06
why add another function instead of an extra param
mkosiba (inactive)
2011/10/05 17:53:18
You mean have one function return both/either the
jam
2011/10/05 19:33:57
sure
| |
| 77 const WebKit::WebURLRequest& failed_request, | |
| 78 const WebKit::WebURLError& error) = 0; | |
| 79 | |
| 75 // Returns true if the renderer process should schedule the idle handler when | 80 // Returns true if the renderer process should schedule the idle handler when |
| 76 // all widgets are hidden. | 81 // all widgets are hidden. |
| 77 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; | 82 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; |
| 78 | 83 |
| 79 // Returns true if the given url can create popup windows. | 84 // Returns true if the given url can create popup windows. |
| 80 virtual bool AllowPopup(const GURL& creator) = 0; | 85 virtual bool AllowPopup(const GURL& creator) = 0; |
| 81 | 86 |
| 82 // Returns true if we should fork a new process for the given navigation. | 87 // Returns true if we should fork a new process for the given navigation. |
| 83 virtual bool ShouldFork(WebKit::WebFrame* frame, | 88 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| 84 const GURL& url, | 89 const GURL& url, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 const std::string& value) = 0; | 133 const std::string& value) = 0; |
| 129 | 134 |
| 130 // True if the protocol implemented to serve |url| supports features required | 135 // True if the protocol implemented to serve |url| supports features required |
| 131 // by the media engine. | 136 // by the media engine. |
| 132 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; | 137 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; |
| 133 }; | 138 }; |
| 134 | 139 |
| 135 } // namespace content | 140 } // namespace content |
| 136 | 141 |
| 137 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 142 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |