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