Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delegates Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 class FilePath; 24 class FilePath;
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 WebMIDIAccessor; 32 class WebMIDIAccessor;
33 class WebMIDIAccessorClient; 33 class WebMIDIAccessorClient;
34 class WebMediaPlayerClient;
35 class WebMediaStreamCenter; 34 class WebMediaStreamCenter;
36 class WebMediaStreamCenterClient; 35 class WebMediaStreamCenterClient;
37 class WebPlugin; 36 class WebPlugin;
38 class WebPluginContainer; 37 class WebPluginContainer;
39 class WebPrescientNetworking; 38 class WebPrescientNetworking;
40 class WebRTCPeerConnectionHandler; 39 class WebRTCPeerConnectionHandler;
41 class WebRTCPeerConnectionHandlerClient; 40 class WebRTCPeerConnectionHandlerClient;
42 class WebSpeechSynthesizer; 41 class WebSpeechSynthesizer;
43 class WebSpeechSynthesizerClient; 42 class WebSpeechSynthesizerClient;
44 class WebThemeEngine; 43 class WebThemeEngine;
45 class WebURLRequest; 44 class WebURLRequest;
46 struct WebPluginParams; 45 struct WebPluginParams;
47 struct WebURLError; 46 struct WebURLError;
48 } 47 }
49 48
50 namespace webkit { 49 namespace webkit {
51 namespace ppapi { 50 namespace ppapi {
52 class PpapiInterfaceFactoryManager; 51 class PpapiInterfaceFactoryManager;
53 } 52 }
54 struct WebPluginInfo; 53 struct WebPluginInfo;
55 } 54 }
56 55
57 namespace webkit_media {
58 class WebMediaPlayerDelegate;
59 class WebMediaPlayerImpl;
60 class WebMediaPlayerParams;
61 }
62
63 namespace content { 56 namespace content {
64 57
58 class MediaPlayerLoadDelegate;
59 class MediaStreamClient;
65 class RenderView; 60 class RenderView;
66 class SynchronousCompositor; 61 class SynchronousCompositor;
67 62
68 // Embedder API for participating in renderer logic. 63 // Embedder API for participating in renderer logic.
69 class CONTENT_EXPORT ContentRendererClient { 64 class CONTENT_EXPORT ContentRendererClient {
70 public: 65 public:
71 virtual ~ContentRendererClient() {} 66 virtual ~ContentRendererClient() {}
72 67
73 // Notifies us that the RenderThread has been created. 68 // Notifies us that the RenderThread has been created.
74 virtual void RenderThreadStarted() {} 69 virtual void RenderThreadStarted() {}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Either of the out parameters may be not written to in certain cases 114 // Either of the out parameters may be not written to in certain cases
120 // (lack of information on the error code) so the caller should take care to 115 // (lack of information on the error code) so the caller should take care to
121 // initialize the string values with safe defaults before the call. 116 // initialize the string values with safe defaults before the call.
122 virtual void GetNavigationErrorStrings( 117 virtual void GetNavigationErrorStrings(
123 WebKit::WebFrame* frame, 118 WebKit::WebFrame* frame,
124 const WebKit::WebURLRequest& failed_request, 119 const WebKit::WebURLRequest& failed_request,
125 const WebKit::WebURLError& error, 120 const WebKit::WebURLError& error,
126 std::string* error_html, 121 std::string* error_html,
127 string16* error_description) {} 122 string16* error_description) {}
128 123
129 // Allows embedder to override creating a WebMediaPlayerImpl. If it returns 124 // Allows the embedder to control when media resources are loaded. If it
130 // NULL the content layer will create the media player. 125 // returns NULL no delegate will be used and media resources will always
131 virtual webkit_media::WebMediaPlayerImpl* OverrideCreateWebMediaPlayer( 126 // be loaded.
132 RenderView* render_view, 127 virtual MediaPlayerLoadDelegate* OverrideCreateMediaPlayerLoadDelegate(
scherkus (not reviewing) 2013/06/28 06:04:41 I'm not a content API pro by any means ... but thi
133 WebKit::WebFrame* frame, 128 RenderView* render_view);
134 WebKit::WebMediaPlayerClient* client,
135 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate,
136 const webkit_media::WebMediaPlayerParams& params);
137 129
138 // Allows the embedder to override creating a WebMediaStreamCenter. If it 130 // Allows the embedder to override creating a WebMediaStreamCenter. If it
139 // returns NULL the content layer will create the stream center. 131 // returns NULL the content layer will create the stream center.
140 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( 132 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter(
141 WebKit::WebMediaStreamCenterClient* client); 133 WebKit::WebMediaStreamCenterClient* client);
142 134
143 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If 135 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If
144 // it returns NULL the content layer will create the connection handler. 136 // it returns NULL the content layer will create the connection handler.
145 virtual WebKit::WebRTCPeerConnectionHandler* 137 virtual WebKit::WebRTCPeerConnectionHandler*
146 OverrideCreateWebRTCPeerConnectionHandler( 138 OverrideCreateWebRTCPeerConnectionHandler(
147 WebKit::WebRTCPeerConnectionHandlerClient* client); 139 WebKit::WebRTCPeerConnectionHandlerClient* client);
148 140
141 // Allows the embedder to override creating a MediaStreamClient. If it returns
142 // NULL the content layer will create the media stream client.
143 virtual MediaStreamClient* OverrideCreateMediaStreamClient();
144
149 // Allows the embedder to override creating a WebMIDIAccessor. If it 145 // Allows the embedder to override creating a WebMIDIAccessor. If it
150 // returns NULL the content layer will create the MIDI accessor. 146 // returns NULL the content layer will create the MIDI accessor.
151 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( 147 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(
152 WebKit::WebMIDIAccessorClient* client); 148 WebKit::WebMIDIAccessorClient* client);
153 149
154 // Allows the embedder to override the WebKit::WebClipboard used. If it 150 // Allows the embedder to override the WebKit::WebClipboard used. If it
155 // returns NULL the content layer will handle clipboard interactions. 151 // returns NULL the content layer will handle clipboard interactions.
156 virtual WebKit::WebClipboard* OverrideWebClipboard(); 152 virtual WebKit::WebClipboard* OverrideWebClipboard();
157 153
158 // Allows the embedder to override the WebKit::WebHyphenator used. If it 154 // Allows the embedder to override the WebKit::WebHyphenator used. If it
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Returns whether BrowserPlugin should be allowed within the |container|. 243 // Returns whether BrowserPlugin should be allowed within the |container|.
248 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; 244 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const;
249 245
250 // 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.
251 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; 247 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const;
252 }; 248 };
253 249
254 } // namespace content 250 } // namespace content
255 251
256 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 252 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698