OLD | NEW |
| (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_ | |
OLD | NEW |