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 12 matching lines...) Expand all Loading... |
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 WebCrypto; |
32 class WebFrame; | 32 class WebFrame; |
33 class WebHyphenator; | |
34 class WebMIDIAccessor; | 33 class WebMIDIAccessor; |
35 class WebMIDIAccessorClient; | 34 class WebMIDIAccessorClient; |
36 class WebMediaStreamCenter; | 35 class WebMediaStreamCenter; |
37 class WebMediaStreamCenterClient; | 36 class WebMediaStreamCenterClient; |
38 class WebPlugin; | 37 class WebPlugin; |
39 class WebPluginContainer; | 38 class WebPluginContainer; |
40 class WebPrescientNetworking; | 39 class WebPrescientNetworking; |
41 class WebRTCPeerConnectionHandler; | 40 class WebRTCPeerConnectionHandler; |
42 class WebRTCPeerConnectionHandlerClient; | 41 class WebRTCPeerConnectionHandlerClient; |
43 class WebSpeechSynthesizer; | 42 class WebSpeechSynthesizer; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 138 |
140 // Allows the embedder to override creating a WebAudioDevice. If it | 139 // Allows the embedder to override creating a WebAudioDevice. If it |
141 // returns NULL the content layer will create the audio device. | 140 // returns NULL the content layer will create the audio device. |
142 virtual WebKit::WebAudioDevice* OverrideCreateAudioDevice( | 141 virtual WebKit::WebAudioDevice* OverrideCreateAudioDevice( |
143 double sample_rate); | 142 double sample_rate); |
144 | 143 |
145 // Allows the embedder to override the WebKit::WebClipboard used. If it | 144 // Allows the embedder to override the WebKit::WebClipboard used. If it |
146 // returns NULL the content layer will handle clipboard interactions. | 145 // returns NULL the content layer will handle clipboard interactions. |
147 virtual WebKit::WebClipboard* OverrideWebClipboard(); | 146 virtual WebKit::WebClipboard* OverrideWebClipboard(); |
148 | 147 |
149 // Allows the embedder to override the WebKit::WebHyphenator used. If it | |
150 // returns NULL the content layer will handle hyphenation. | |
151 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); | |
152 | |
153 // Allows the embedder to override the WebThemeEngine used. If it returns NULL | 148 // Allows the embedder to override the WebThemeEngine used. If it returns NULL |
154 // the content layer will provide an engine. | 149 // the content layer will provide an engine. |
155 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); | 150 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); |
156 | 151 |
157 // Allows the embedder to override the WebSpeechSynthesizer used. | 152 // Allows the embedder to override the WebSpeechSynthesizer used. |
158 // If it returns NULL the content layer will provide an engine. | 153 // If it returns NULL the content layer will provide an engine. |
159 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( | 154 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
160 WebKit::WebSpeechSynthesizerClient* client); | 155 WebKit::WebSpeechSynthesizerClient* client); |
161 | 156 |
162 // Allows the embedder to override the WebCrypto used. | 157 // Allows the embedder to override the WebCrypto used. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // Returns whether BrowserPlugin should be allowed within the |container|. | 238 // Returns whether BrowserPlugin should be allowed within the |container|. |
244 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; | 239 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; |
245 | 240 |
246 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 241 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
247 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; | 242 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; |
248 }; | 243 }; |
249 | 244 |
250 } // namespace content | 245 } // namespace content |
251 | 246 |
252 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 247 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |