| 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 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
| 14 #include "content/public/common/page_transition_types.h" | 14 #include "content/public/common/page_transition_types.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 18 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
| 19 | 19 |
| 20 class GURL; | 20 class GURL; |
| 21 class SkBitmap; | 21 class SkBitmap; |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class FilePath; | 24 class FilePath; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace WebKit { | 27 namespace WebKit { |
| 28 class WebClipboard; | 28 class WebClipboard; |
| 29 class WebFrame; | 29 class WebFrame; |
| 30 class WebHyphenator; |
| 30 class WebMediaPlayerClient; | 31 class WebMediaPlayerClient; |
| 31 class WebMediaStreamCenter; | 32 class WebMediaStreamCenter; |
| 32 class WebMediaStreamCenterClient; | 33 class WebMediaStreamCenterClient; |
| 33 class WebPlugin; | 34 class WebPlugin; |
| 34 class WebRTCPeerConnectionHandler; | 35 class WebRTCPeerConnectionHandler; |
| 35 class WebRTCPeerConnectionHandlerClient; | 36 class WebRTCPeerConnectionHandlerClient; |
| 36 class WebURLRequest; | 37 class WebURLRequest; |
| 37 struct WebPluginParams; | 38 struct WebPluginParams; |
| 38 struct WebURLError; | 39 struct WebURLError; |
| 39 } | 40 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If | 133 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If |
| 133 // it returns NULL the content layer will create the connection handler. | 134 // it returns NULL the content layer will create the connection handler. |
| 134 virtual WebKit::WebRTCPeerConnectionHandler* | 135 virtual WebKit::WebRTCPeerConnectionHandler* |
| 135 OverrideCreateWebRTCPeerConnectionHandler( | 136 OverrideCreateWebRTCPeerConnectionHandler( |
| 136 WebKit::WebRTCPeerConnectionHandlerClient* client); | 137 WebKit::WebRTCPeerConnectionHandlerClient* client); |
| 137 | 138 |
| 138 // Allows the embedder to override the WebKit::WebClipboard used. If it | 139 // Allows the embedder to override the WebKit::WebClipboard used. If it |
| 139 // returns NULL the content layer will handle clipboard interactions. | 140 // returns NULL the content layer will handle clipboard interactions. |
| 140 virtual WebKit::WebClipboard* OverrideWebClipboard(); | 141 virtual WebKit::WebClipboard* OverrideWebClipboard(); |
| 141 | 142 |
| 143 // Allows the embedder to override the WebKit::WebHyphenator used. If it |
| 144 // returns NULL the content layer will handle hyphenation. |
| 145 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); |
| 146 |
| 142 // Returns true if the renderer process should schedule the idle handler when | 147 // Returns true if the renderer process should schedule the idle handler when |
| 143 // all widgets are hidden. | 148 // all widgets are hidden. |
| 144 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 149 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 145 | 150 |
| 146 // Returns true if a popup window should be allowed. | 151 // Returns true if a popup window should be allowed. |
| 147 virtual bool AllowPopup(); | 152 virtual bool AllowPopup(); |
| 148 | 153 |
| 149 // Returns true if the navigation was handled by the embedder and should be | 154 // Returns true if the navigation was handled by the embedder and should be |
| 150 // ignored by WebKit. This method is used by CEF. | 155 // ignored by WebKit. This method is used by CEF. |
| 151 virtual bool HandleNavigation(WebKit::WebFrame* frame, | 156 virtual bool HandleNavigation(WebKit::WebFrame* frame, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 const GURL& first_party_for_cookies, | 210 const GURL& first_party_for_cookies, |
| 206 const std::string& value); | 211 const std::string& value); |
| 207 | 212 |
| 208 virtual void RegisterPPAPIInterfaceFactories( | 213 virtual void RegisterPPAPIInterfaceFactories( |
| 209 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} | 214 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} |
| 210 }; | 215 }; |
| 211 | 216 |
| 212 } // namespace content | 217 } // namespace content |
| 213 | 218 |
| 214 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 219 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |