| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class SkBitmap; | 21 class SkBitmap; |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class FilePath; | 24 class FilePath; |
| 25 class MessageLoop; | 25 class MessageLoop; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace WebKit { | 28 namespace WebKit { |
| 29 class WebAudioDevice; | 29 class WebAudioDevice; |
| 30 class WebClipboard; | 30 class WebClipboard; |
| 31 class WebCrypto; |
| 31 class WebFrame; | 32 class WebFrame; |
| 32 class WebHyphenator; | 33 class WebHyphenator; |
| 33 class WebMIDIAccessor; | 34 class WebMIDIAccessor; |
| 34 class WebMIDIAccessorClient; | 35 class WebMIDIAccessorClient; |
| 35 class WebMediaStreamCenter; | 36 class WebMediaStreamCenter; |
| 36 class WebMediaStreamCenterClient; | 37 class WebMediaStreamCenterClient; |
| 37 class WebPlugin; | 38 class WebPlugin; |
| 38 class WebPluginContainer; | 39 class WebPluginContainer; |
| 39 class WebPrescientNetworking; | 40 class WebPrescientNetworking; |
| 40 class WebRTCPeerConnectionHandler; | 41 class WebRTCPeerConnectionHandler; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 152 |
| 152 // Allows the embedder to override the WebThemeEngine used. If it returns NULL | 153 // Allows the embedder to override the WebThemeEngine used. If it returns NULL |
| 153 // the content layer will provide an engine. | 154 // the content layer will provide an engine. |
| 154 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); | 155 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); |
| 155 | 156 |
| 156 // Allows the embedder to override the WebSpeechSynthesizer used. | 157 // Allows the embedder to override the WebSpeechSynthesizer used. |
| 157 // If it returns NULL the content layer will provide an engine. | 158 // If it returns NULL the content layer will provide an engine. |
| 158 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( | 159 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
| 159 WebKit::WebSpeechSynthesizerClient* client); | 160 WebKit::WebSpeechSynthesizerClient* client); |
| 160 | 161 |
| 162 // Allows the embedder to override the WebCrypto used. |
| 163 // If it returns NULL the content layer will handle crypto. |
| 164 virtual WebKit::WebCrypto* OverrideWebCrypto(); |
| 165 |
| 161 // Returns true if the renderer process should schedule the idle handler when | 166 // Returns true if the renderer process should schedule the idle handler when |
| 162 // all widgets are hidden. | 167 // all widgets are hidden. |
| 163 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 168 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 164 | 169 |
| 165 // Returns true if a popup window should be allowed. | 170 // Returns true if a popup window should be allowed. |
| 166 virtual bool AllowPopup(); | 171 virtual bool AllowPopup(); |
| 167 | 172 |
| 168 // Returns true if the navigation was handled by the embedder and should be | 173 // Returns true if the navigation was handled by the embedder and should be |
| 169 // ignored by WebKit. This method is used by CEF. | 174 // ignored by WebKit. This method is used by CEF. |
| 170 virtual bool HandleNavigation(WebKit::WebFrame* frame, | 175 virtual bool HandleNavigation(WebKit::WebFrame* frame, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // Returns whether BrowserPlugin should be allowed within the |container|. | 243 // Returns whether BrowserPlugin should be allowed within the |container|. |
| 239 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; | 244 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; |
| 240 | 245 |
| 241 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 246 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
| 242 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; | 247 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; |
| 243 }; | 248 }; |
| 244 | 249 |
| 245 } // namespace content | 250 } // namespace content |
| 246 | 251 |
| 247 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 252 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |