OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 // This file includes proxy classes for tracks. The purpose is | 28 // This file includes proxy classes for tracks. The purpose is |
29 // to make sure tracks are only accessed from the signaling thread. | 29 // to make sure tracks are only accessed from the signaling thread. |
30 | 30 |
31 #ifndef TALK_APP_WEBRTC_MEDIASTREAMTRACKPROXY_H_ | 31 #ifndef WEBRTC_API_MEDIASTREAMTRACKPROXY_H_ |
32 #define TALK_APP_WEBRTC_MEDIASTREAMTRACKPROXY_H_ | 32 #define WEBRTC_API_MEDIASTREAMTRACKPROXY_H_ |
33 | 33 |
34 #include "talk/app/webrtc/mediastreaminterface.h" | 34 #include "webrtc/api/mediastreaminterface.h" |
35 #include "talk/app/webrtc/proxy.h" | 35 #include "webrtc/api/proxy.h" |
36 | 36 |
37 namespace webrtc { | 37 namespace webrtc { |
38 | 38 |
39 BEGIN_PROXY_MAP(AudioTrack) | 39 BEGIN_PROXY_MAP(AudioTrack) |
40 PROXY_CONSTMETHOD0(std::string, kind) | 40 PROXY_CONSTMETHOD0(std::string, kind) |
41 PROXY_CONSTMETHOD0(std::string, id) | 41 PROXY_CONSTMETHOD0(std::string, id) |
42 PROXY_CONSTMETHOD0(TrackState, state) | 42 PROXY_CONSTMETHOD0(TrackState, state) |
43 PROXY_CONSTMETHOD0(bool, enabled) | 43 PROXY_CONSTMETHOD0(bool, enabled) |
44 PROXY_CONSTMETHOD0(AudioSourceInterface*, GetSource) | 44 PROXY_CONSTMETHOD0(AudioSourceInterface*, GetSource) |
45 PROXY_METHOD1(void, AddSink, AudioTrackSinkInterface*) | 45 PROXY_METHOD1(void, AddSink, AudioTrackSinkInterface*) |
(...skipping 21 matching lines...) Expand all Loading... |
67 PROXY_METHOD1(void, RemoveRenderer, VideoRendererInterface*) | 67 PROXY_METHOD1(void, RemoveRenderer, VideoRendererInterface*) |
68 PROXY_CONSTMETHOD0(VideoSourceInterface*, GetSource) | 68 PROXY_CONSTMETHOD0(VideoSourceInterface*, GetSource) |
69 PROXY_METHOD0(rtc::VideoSinkInterface<cricket::VideoFrame>*, GetSink) | 69 PROXY_METHOD0(rtc::VideoSinkInterface<cricket::VideoFrame>*, GetSink) |
70 | 70 |
71 PROXY_METHOD1(void, RegisterObserver, ObserverInterface*) | 71 PROXY_METHOD1(void, RegisterObserver, ObserverInterface*) |
72 PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*) | 72 PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*) |
73 END_PROXY() | 73 END_PROXY() |
74 | 74 |
75 } // namespace webrtc | 75 } // namespace webrtc |
76 | 76 |
77 #endif // TALK_APP_WEBRTC_MEDIASTREAMTRACKPROXY_H_ | 77 #endif // WEBRTC_API_MEDIASTREAMTRACKPROXY_H_ |
OLD | NEW |