Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: talk/app/webrtc/videosourceproxy.h

Issue 1522903002: Add a 'remote' property to MediaSourceInterface. Also adding an implementation to the relevant sour… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/app/webrtc/videosource_unittest.cc ('k') | talk/app/webrtc/videotrack_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « talk/app/webrtc/videosource_unittest.cc ('k') | talk/app/webrtc/videotrack_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698