| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // message describing the error that has occurred. | 82 // message describing the error that has occurred. |
| 83 // Either of the out parameters may be not written to in certain cases | 83 // Either of the out parameters may be not written to in certain cases |
| 84 // (lack of information on the error code) so the caller should take care to | 84 // (lack of information on the error code) so the caller should take care to |
| 85 // initialize the string values with safe defaults before the call. | 85 // initialize the string values with safe defaults before the call. |
| 86 virtual void GetNavigationErrorStrings( | 86 virtual void GetNavigationErrorStrings( |
| 87 const WebKit::WebURLRequest& failed_request, | 87 const WebKit::WebURLRequest& failed_request, |
| 88 const WebKit::WebURLError& error, | 88 const WebKit::WebURLError& error, |
| 89 std::string* error_html, | 89 std::string* error_html, |
| 90 string16* error_description) = 0; | 90 string16* error_description) = 0; |
| 91 | 91 |
| 92 // Returns true if the renderer process should schedule the idle handler when | |
| 93 // all widgets are hidden. | |
| 94 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; | |
| 95 | |
| 96 // Returns true if the given url can create popup windows. | 92 // Returns true if the given url can create popup windows. |
| 97 virtual bool AllowPopup(const GURL& creator) = 0; | 93 virtual bool AllowPopup(const GURL& creator) = 0; |
| 98 | 94 |
| 99 // Returns true if we should fork a new process for the given navigation. | 95 // Returns true if we should fork a new process for the given navigation. |
| 100 virtual bool ShouldFork(WebKit::WebFrame* frame, | 96 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| 101 const GURL& url, | 97 const GURL& url, |
| 102 bool is_content_initiated, | 98 bool is_content_initiated, |
| 103 bool is_initial_navigation, | 99 bool is_initial_navigation, |
| 104 bool* send_referrer) = 0; | 100 bool* send_referrer) = 0; |
| 105 | 101 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // by the media engine. | 144 // by the media engine. |
| 149 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; | 145 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; |
| 150 | 146 |
| 151 virtual void RegisterPPAPIInterfaceFactories( | 147 virtual void RegisterPPAPIInterfaceFactories( |
| 152 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; | 148 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; |
| 153 }; | 149 }; |
| 154 | 150 |
| 155 } // namespace content | 151 } // namespace content |
| 156 | 152 |
| 157 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 153 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |