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

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

Issue 18590002: Migrate MediaStream test code from content/shell/renderer/ to content/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 struct WebURLError; 46 struct WebURLError;
47 } 47 }
48 48
49 namespace webkit { 49 namespace webkit {
50 namespace ppapi { 50 namespace ppapi {
51 class PpapiInterfaceFactoryManager; 51 class PpapiInterfaceFactoryManager;
52 } 52 }
53 struct WebPluginInfo; 53 struct WebPluginInfo;
54 } 54 }
55 55
56 namespace webkit_media {
57 class MediaLoadDelegate;
58 class MediaStreamClient;
59 }
60
61 namespace content { 56 namespace content {
62 57
63 class RenderView; 58 class RenderView;
59 class MediaStreamClient;
64 class SynchronousCompositor; 60 class SynchronousCompositor;
65 61
66 // Embedder API for participating in renderer logic. 62 // Embedder API for participating in renderer logic.
67 class CONTENT_EXPORT ContentRendererClient { 63 class CONTENT_EXPORT ContentRendererClient {
68 public: 64 public:
69 virtual ~ContentRendererClient() {} 65 virtual ~ContentRendererClient() {}
70 66
71 // Notifies us that the RenderThread has been created. 67 // Notifies us that the RenderThread has been created.
72 virtual void RenderThreadStarted() {} 68 virtual void RenderThreadStarted() {}
73 69
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 WebKit::WebMediaStreamCenterClient* client); 132 WebKit::WebMediaStreamCenterClient* client);
137 133
138 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If 134 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If
139 // it returns NULL the content layer will create the connection handler. 135 // it returns NULL the content layer will create the connection handler.
140 virtual WebKit::WebRTCPeerConnectionHandler* 136 virtual WebKit::WebRTCPeerConnectionHandler*
141 OverrideCreateWebRTCPeerConnectionHandler( 137 OverrideCreateWebRTCPeerConnectionHandler(
142 WebKit::WebRTCPeerConnectionHandlerClient* client); 138 WebKit::WebRTCPeerConnectionHandlerClient* client);
143 139
144 // Allows the embedder to override creating a MediaStreamClient. If it returns 140 // Allows the embedder to override creating a MediaStreamClient. If it returns
145 // NULL the content layer will create the media stream client. 141 // NULL the content layer will create the media stream client.
146 virtual webkit_media::MediaStreamClient* OverrideCreateMediaStreamClient(); 142 virtual MediaStreamClient* OverrideCreateMediaStreamClient();
147 143
148 // Allows the embedder to override creating a WebMIDIAccessor. If it 144 // Allows the embedder to override creating a WebMIDIAccessor. If it
149 // returns NULL the content layer will create the MIDI accessor. 145 // returns NULL the content layer will create the MIDI accessor.
150 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( 146 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(
151 WebKit::WebMIDIAccessorClient* client); 147 WebKit::WebMIDIAccessorClient* client);
152 148
153 // Allows the embedder to override the WebKit::WebClipboard used. If it 149 // Allows the embedder to override the WebKit::WebClipboard used. If it
154 // returns NULL the content layer will handle clipboard interactions. 150 // returns NULL the content layer will handle clipboard interactions.
155 virtual WebKit::WebClipboard* OverrideWebClipboard(); 151 virtual WebKit::WebClipboard* OverrideWebClipboard();
156 152
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Returns whether BrowserPlugin should be allowed within the |container|. 242 // Returns whether BrowserPlugin should be allowed within the |container|.
247 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; 243 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const;
248 244
249 // Returns true if the page at |url| can use Pepper MediaStream APIs. 245 // Returns true if the page at |url| can use Pepper MediaStream APIs.
250 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; 246 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const;
251 }; 247 };
252 248
253 } // namespace content 249 } // namespace content
254 250
255 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 251 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698