| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * libjingle | 2  * libjingle | 
| 3  * Copyright 2012 Google Inc. | 3  * Copyright 2012 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 20 matching lines...) Expand all  Loading... | 
| 31 #include "talk/app/webrtc/proxy.h" | 31 #include "talk/app/webrtc/proxy.h" | 
| 32 #include "talk/app/webrtc/videosourceinterface.h" | 32 #include "talk/app/webrtc/videosourceinterface.h" | 
| 33 | 33 | 
| 34 namespace webrtc { | 34 namespace webrtc { | 
| 35 | 35 | 
| 36 // VideoSourceProxy makes sure the real VideoSourceInterface implementation is | 36 // VideoSourceProxy makes sure the real VideoSourceInterface implementation is | 
| 37 // destroyed on the signaling thread and marshals all method calls to the | 37 // destroyed on the signaling thread and marshals all method calls to the | 
| 38 // signaling thread. | 38 // signaling thread. | 
| 39 BEGIN_PROXY_MAP(VideoSource) | 39 BEGIN_PROXY_MAP(VideoSource) | 
| 40   PROXY_CONSTMETHOD0(SourceState, state) | 40   PROXY_CONSTMETHOD0(SourceState, state) | 
|  | 41   PROXY_CONSTMETHOD0(bool, remote) | 
| 41   PROXY_METHOD0(cricket::VideoCapturer*, GetVideoCapturer) | 42   PROXY_METHOD0(cricket::VideoCapturer*, GetVideoCapturer) | 
| 42   PROXY_METHOD0(void, Stop) | 43   PROXY_METHOD0(void, Stop) | 
| 43   PROXY_METHOD0(void, Restart) | 44   PROXY_METHOD0(void, Restart) | 
| 44   PROXY_METHOD1(void, AddSink, cricket::VideoRenderer*) | 45   PROXY_METHOD1(void, AddSink, cricket::VideoRenderer*) | 
| 45   PROXY_METHOD1(void, RemoveSink, cricket::VideoRenderer*) | 46   PROXY_METHOD1(void, RemoveSink, cricket::VideoRenderer*) | 
| 46   PROXY_CONSTMETHOD0(const cricket::VideoOptions*, options) | 47   PROXY_CONSTMETHOD0(const cricket::VideoOptions*, options) | 
| 47   PROXY_METHOD0(cricket::VideoRenderer*, FrameInput) | 48   PROXY_METHOD0(cricket::VideoRenderer*, FrameInput) | 
| 48   PROXY_METHOD1(void, RegisterObserver, ObserverInterface*) | 49   PROXY_METHOD1(void, RegisterObserver, ObserverInterface*) | 
| 49   PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*) | 50   PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*) | 
| 50 END_PROXY() | 51 END_PROXY() | 
| 51 | 52 | 
| 52 }  // namespace webrtc | 53 }  // namespace webrtc | 
| 53 | 54 | 
| 54 #endif  // TALK_APP_WEBRTC_VIDEOSOURCEPROXY_H_ | 55 #endif  // TALK_APP_WEBRTC_VIDEOSOURCEPROXY_H_ | 
| OLD | NEW | 
|---|