OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 // This file contains interfaces for MediaStream, MediaTrack and MediaSource. | 11 // This file contains interfaces for MediaStream, MediaTrack and MediaSource. |
12 // These interfaces are used for implementing MediaStream and MediaTrack as | 12 // These interfaces are used for implementing MediaStream and MediaTrack as |
13 // defined in http://dev.w3.org/2011/webrtc/editor/webrtc.html#stream-api. These | 13 // defined in http://dev.w3.org/2011/webrtc/editor/webrtc.html#stream-api. These |
14 // interfaces must be used only with PeerConnection. PeerConnectionManager | 14 // interfaces must be used only with PeerConnection. PeerConnectionManager |
15 // interface provides the factory methods to create MediaStream and MediaTracks. | 15 // interface provides the factory methods to create MediaStream and MediaTracks. |
16 | 16 |
17 #ifndef WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 17 #ifndef WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
18 #define WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 18 #define WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
19 | 19 |
20 #include <stddef.h> | 20 #include <stddef.h> |
21 | 21 |
22 #include <string> | 22 #include <string> |
23 #include <vector> | 23 #include <vector> |
24 | 24 |
| 25 #include "webrtc/api/optional.h" |
25 #include "webrtc/api/video/video_frame.h" | 26 #include "webrtc/api/video/video_frame.h" |
26 #include "webrtc/rtc_base/optional.h" | |
27 // TODO(zhihuang): Remove unrelated headers once downstream applications stop | 27 // TODO(zhihuang): Remove unrelated headers once downstream applications stop |
28 // relying on them; they were previously transitively included by | 28 // relying on them; they were previously transitively included by |
29 // mediachannel.h, which is no longer a dependency of this file. | 29 // mediachannel.h, which is no longer a dependency of this file. |
30 #include "webrtc/media/base/streamparams.h" | 30 #include "webrtc/media/base/streamparams.h" |
31 #include "webrtc/media/base/videosinkinterface.h" | 31 #include "webrtc/media/base/videosinkinterface.h" |
32 #include "webrtc/media/base/videosourceinterface.h" | 32 #include "webrtc/media/base/videosourceinterface.h" |
33 #include "webrtc/rtc_base/ratetracker.h" | 33 #include "webrtc/rtc_base/ratetracker.h" |
34 #include "webrtc/rtc_base/refcount.h" | 34 #include "webrtc/rtc_base/refcount.h" |
35 #include "webrtc/rtc_base/scoped_ref_ptr.h" | 35 #include "webrtc/rtc_base/scoped_ref_ptr.h" |
36 #include "webrtc/rtc_base/thread.h" | 36 #include "webrtc/rtc_base/thread.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 314 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
315 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 315 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
316 | 316 |
317 protected: | 317 protected: |
318 virtual ~MediaStreamInterface() {} | 318 virtual ~MediaStreamInterface() {} |
319 }; | 319 }; |
320 | 320 |
321 } // namespace webrtc | 321 } // namespace webrtc |
322 | 322 |
323 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 323 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
OLD | NEW |