OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_PC_MEDIASTREAMOBSERVER_H_ | 11 #ifndef WEBRTC_PC_MEDIASTREAMOBSERVER_H_ |
12 #define WEBRTC_PC_MEDIASTREAMOBSERVER_H_ | 12 #define WEBRTC_PC_MEDIASTREAMOBSERVER_H_ |
13 | 13 |
14 #include "webrtc/api/mediastreaminterface.h" | 14 #include "webrtc/api/mediastreaminterface.h" |
15 #include "webrtc/rtc_base/scoped_ref_ptr.h" | 15 #include "webrtc/base/scoped_ref_ptr.h" |
16 #include "webrtc/rtc_base/sigslot.h" | 16 #include "webrtc/base/sigslot.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 // Helper class which will listen for changes to a stream and emit the | 20 // Helper class which will listen for changes to a stream and emit the |
21 // corresponding signals. | 21 // corresponding signals. |
22 class MediaStreamObserver : public ObserverInterface { | 22 class MediaStreamObserver : public ObserverInterface { |
23 public: | 23 public: |
24 explicit MediaStreamObserver(MediaStreamInterface* stream); | 24 explicit MediaStreamObserver(MediaStreamInterface* stream); |
25 ~MediaStreamObserver(); | 25 ~MediaStreamObserver(); |
26 | 26 |
(...skipping 12 matching lines...) Expand all Loading... |
39 | 39 |
40 private: | 40 private: |
41 rtc::scoped_refptr<MediaStreamInterface> stream_; | 41 rtc::scoped_refptr<MediaStreamInterface> stream_; |
42 AudioTrackVector cached_audio_tracks_; | 42 AudioTrackVector cached_audio_tracks_; |
43 VideoTrackVector cached_video_tracks_; | 43 VideoTrackVector cached_video_tracks_; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace webrtc | 46 } // namespace webrtc |
47 | 47 |
48 #endif // WEBRTC_PC_MEDIASTREAMOBSERVER_H_ | 48 #endif // WEBRTC_PC_MEDIASTREAMOBSERVER_H_ |
OLD | NEW |