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

Side by Side Diff: content/renderer/media/media_stream_center.h

Issue 9619006: Adding a skeleton MediaStreamCenter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding a skeleton MediaStreamCenter. Created 8 years, 9 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_renderer.gypi ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/common/content_export.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenter.h"
12
13 namespace WebKit {
14 class WebMediaStreamCenterClient;
15 }
16
17 namespace content {
18
19 class CONTENT_EXPORT MediaStreamCenter
20 : NON_EXPORTED_BASE(public WebKit::WebMediaStreamCenter) {
21 public:
22 explicit MediaStreamCenter(WebKit::WebMediaStreamCenterClient* client);
23
24 virtual void queryMediaStreamSources(
25 const WebKit::WebMediaStreamSourcesRequest& request) OVERRIDE;
26
27 virtual void didEnableMediaStreamTrack(
28 const WebKit::WebMediaStreamDescriptor& stream,
29 const WebKit::WebMediaStreamComponent& component) OVERRIDE;
30
31 virtual void didDisableMediaStreamTrack(
32 const WebKit::WebMediaStreamDescriptor& stream,
33 const WebKit::WebMediaStreamComponent& component) OVERRIDE;
34
35 virtual void didStopLocalMediaStream(
36 const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE;
37
38 virtual void didConstructMediaStream(
39 const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE;
40
41 private:
42 // Weak pointer, owned by WebKit.
43 WebKit::WebMediaStreamCenterClient* client_;
44
45 DISALLOW_COPY_AND_ASSIGN(MediaStreamCenter);
46 };
47
48 } // namespace content
49
50 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698