| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 92 // Returns true if the renderer process should schedule the idle handler when |
| 93 // all widgets are hidden. | 93 // all widgets are hidden. |
| 94 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; | 94 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; |
| 95 | 95 |
| 96 // Returns true if the renderer process should schedule the idle handler when |
| 97 // the user is idle. |
| 98 virtual bool RunIdleHandlerWhenUserIdle() = 0; |
| 99 |
| 96 // Returns true if the given url can create popup windows. | 100 // Returns true if the given url can create popup windows. |
| 97 virtual bool AllowPopup(const GURL& creator) = 0; | 101 virtual bool AllowPopup(const GURL& creator) = 0; |
| 98 | 102 |
| 99 // Returns true if we should fork a new process for the given navigation. | 103 // Returns true if we should fork a new process for the given navigation. |
| 100 virtual bool ShouldFork(WebKit::WebFrame* frame, | 104 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| 101 const GURL& url, | 105 const GURL& url, |
| 102 bool is_content_initiated, | 106 bool is_content_initiated, |
| 103 bool is_initial_navigation, | 107 bool is_initial_navigation, |
| 104 bool* send_referrer) = 0; | 108 bool* send_referrer) = 0; |
| 105 | 109 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // by the media engine. | 152 // by the media engine. |
| 149 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; | 153 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; |
| 150 | 154 |
| 151 virtual void RegisterPPAPIInterfaceFactories( | 155 virtual void RegisterPPAPIInterfaceFactories( |
| 152 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; | 156 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; |
| 153 }; | 157 }; |
| 154 | 158 |
| 155 } // namespace content | 159 } // namespace content |
| 156 | 160 |
| 157 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 161 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |