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

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: rebase 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
64 class SynchronousCompositor; 59 class SynchronousCompositor;
65 60
66 // Embedder API for participating in renderer logic. 61 // Embedder API for participating in renderer logic.
67 class CONTENT_EXPORT ContentRendererClient { 62 class CONTENT_EXPORT ContentRendererClient {
68 public: 63 public:
69 virtual ~ContentRendererClient() {} 64 virtual ~ContentRendererClient() {}
70 65
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // returns NULL the content layer will create the stream center. 129 // returns NULL the content layer will create the stream center.
135 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( 130 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter(
136 WebKit::WebMediaStreamCenterClient* client); 131 WebKit::WebMediaStreamCenterClient* client);
137 132
138 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If 133 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If
139 // it returns NULL the content layer will create the connection handler. 134 // it returns NULL the content layer will create the connection handler.
140 virtual WebKit::WebRTCPeerConnectionHandler* 135 virtual WebKit::WebRTCPeerConnectionHandler*
141 OverrideCreateWebRTCPeerConnectionHandler( 136 OverrideCreateWebRTCPeerConnectionHandler(
142 WebKit::WebRTCPeerConnectionHandlerClient* client); 137 WebKit::WebRTCPeerConnectionHandlerClient* client);
143 138
144 // Allows the embedder to override creating a MediaStreamClient. If it returns
145 // NULL the content layer will create the media stream client.
146 virtual webkit_media::MediaStreamClient* OverrideCreateMediaStreamClient();
147
148 // Allows the embedder to override creating a WebMIDIAccessor. If it 139 // Allows the embedder to override creating a WebMIDIAccessor. If it
149 // returns NULL the content layer will create the MIDI accessor. 140 // returns NULL the content layer will create the MIDI accessor.
150 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( 141 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(
151 WebKit::WebMIDIAccessorClient* client); 142 WebKit::WebMIDIAccessorClient* client);
152 143
153 // Allows the embedder to override the WebKit::WebClipboard used. If it 144 // Allows the embedder to override the WebKit::WebClipboard used. If it
154 // returns NULL the content layer will handle clipboard interactions. 145 // returns NULL the content layer will handle clipboard interactions.
155 virtual WebKit::WebClipboard* OverrideWebClipboard(); 146 virtual WebKit::WebClipboard* OverrideWebClipboard();
156 147
157 // Allows the embedder to override the WebKit::WebHyphenator used. If it 148 // Allows the embedder to override the WebKit::WebHyphenator used. If it
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Returns whether BrowserPlugin should be allowed within the |container|. 237 // Returns whether BrowserPlugin should be allowed within the |container|.
247 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; 238 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const;
248 239
249 // Returns true if the page at |url| can use Pepper MediaStream APIs. 240 // Returns true if the page at |url| can use Pepper MediaStream APIs.
250 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const; 241 virtual bool AllowPepperMediaStreamAPI(const GURL& url) const;
251 }; 242 };
252 243
253 } // namespace content 244 } // namespace content
254 245
255 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 246 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698