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 14 matching lines...) Expand all Loading... |
25 class MessageLoop; | 25 class MessageLoop; |
26 } | 26 } |
27 | 27 |
28 namespace WebKit { | 28 namespace WebKit { |
29 class WebClipboard; | 29 class WebClipboard; |
30 class WebFrame; | 30 class WebFrame; |
31 class WebHyphenator; | 31 class WebHyphenator; |
32 class WebMediaPlayerClient; | 32 class WebMediaPlayerClient; |
33 class WebMediaStreamCenter; | 33 class WebMediaStreamCenter; |
34 class WebMediaStreamCenterClient; | 34 class WebMediaStreamCenterClient; |
35 class WebMimeRegistry; | |
36 class WebPlugin; | 35 class WebPlugin; |
37 class WebPluginContainer; | 36 class WebPluginContainer; |
38 class WebPrescientNetworking; | 37 class WebPrescientNetworking; |
39 class WebRTCPeerConnectionHandler; | 38 class WebRTCPeerConnectionHandler; |
40 class WebRTCPeerConnectionHandlerClient; | 39 class WebRTCPeerConnectionHandlerClient; |
41 class WebSpeechSynthesizer; | 40 class WebSpeechSynthesizer; |
42 class WebSpeechSynthesizerClient; | 41 class WebSpeechSynthesizerClient; |
43 class WebThemeEngine; | 42 class WebThemeEngine; |
44 class WebURLRequest; | 43 class WebURLRequest; |
45 struct WebPluginParams; | 44 struct WebPluginParams; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If | 141 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If |
143 // it returns NULL the content layer will create the connection handler. | 142 // it returns NULL the content layer will create the connection handler. |
144 virtual WebKit::WebRTCPeerConnectionHandler* | 143 virtual WebKit::WebRTCPeerConnectionHandler* |
145 OverrideCreateWebRTCPeerConnectionHandler( | 144 OverrideCreateWebRTCPeerConnectionHandler( |
146 WebKit::WebRTCPeerConnectionHandlerClient* client); | 145 WebKit::WebRTCPeerConnectionHandlerClient* client); |
147 | 146 |
148 // Allows the embedder to override the WebKit::WebClipboard used. If it | 147 // Allows the embedder to override the WebKit::WebClipboard used. If it |
149 // returns NULL the content layer will handle clipboard interactions. | 148 // returns NULL the content layer will handle clipboard interactions. |
150 virtual WebKit::WebClipboard* OverrideWebClipboard(); | 149 virtual WebKit::WebClipboard* OverrideWebClipboard(); |
151 | 150 |
152 // Allows the embedder to override the WebKit::WebMimeRegistry used. If it | |
153 // returns NULL the content layer will provide its own mime registry. | |
154 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry(); | |
155 | |
156 // Allows the embedder to override the WebKit::WebHyphenator used. If it | 151 // Allows the embedder to override the WebKit::WebHyphenator used. If it |
157 // returns NULL the content layer will handle hyphenation. | 152 // returns NULL the content layer will handle hyphenation. |
158 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); | 153 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); |
159 | 154 |
160 // Allows the embedder to override the WebThemeEngine used. If it returns NULL | 155 // Allows the embedder to override the WebThemeEngine used. If it returns NULL |
161 // the content layer will provide an engine. | 156 // the content layer will provide an engine. |
162 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); | 157 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); |
163 | 158 |
164 // Allows the embedder to override the WebSpeechSynthesizer used. | 159 // Allows the embedder to override the WebSpeechSynthesizer used. |
165 // If it returns NULL the content layer will provide an engine. | 160 // If it returns NULL the content layer will provide an engine. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // Returns whether BrowserPlugin should be allowed within the |container|. | 240 // Returns whether BrowserPlugin should be allowed within the |container|. |
246 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; | 241 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; |
247 | 242 |
248 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 243 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
249 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; | 244 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; |
250 }; | 245 }; |
251 | 246 |
252 } // namespace content | 247 } // namespace content |
253 | 248 |
254 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 249 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |