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_EXTRA_DATA_H_ | |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_EXTRA_DATA_H_ | |
7 | |
8 #include "content/common/content_export.h" | |
9 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" | |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amDescriptor.h" | |
11 | |
12 namespace webrtc { | |
13 class MediaStreamInterface; | |
14 class LocalMediaStreamInterface; | |
15 } | |
tommi (sloooow) - chröme
2012/05/14 14:33:52
} // namespace webrtc
perkj_chrome
2012/05/14 15:14:33
Done.
| |
16 | |
17 class CONTENT_EXPORT MediaStreamExtraData | |
18 : public WebKit::WebMediaStreamDescriptor::ExtraData { | |
19 public: | |
20 explicit MediaStreamExtraData(webrtc::MediaStreamInterface* remote_stream); | |
21 explicit MediaStreamExtraData( | |
22 webrtc::LocalMediaStreamInterface* local_stream); | |
23 virtual ~MediaStreamExtraData(); | |
24 | |
25 webrtc::MediaStreamInterface* remote_stream() { return remote_stream_.get(); } | |
26 webrtc::LocalMediaStreamInterface* local_stream() { | |
27 return local_stream_.get(); | |
28 } | |
29 | |
30 private: | |
31 talk_base::scoped_refptr<webrtc::MediaStreamInterface> remote_stream_; | |
32 talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface> local_stream_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(MediaStreamExtraData); | |
35 }; | |
36 | |
37 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_EXTRA_DATA_H_ | |
OLD | NEW |