10e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org/*
20e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * libjingle
30e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * Copyright 2012, Google Inc.
40e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *
50e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * Redistribution and use in source and binary forms, with or without
60e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * modification, are permitted provided that the following conditions are met:
70e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *
80e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *  1. Redistributions of source code must retain the above copyright notice,
90e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *     this list of conditions and the following disclaimer.
100e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *  2. Redistributions in binary form must reproduce the above copyright notice,
110e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *     this list of conditions and the following disclaimer in the documentation
120e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *     and/or other materials provided with the distribution.
130e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *  3. The name of the author may not be used to endorse or promote products
140e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *     derived from this software without specific prior written permission.
150e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org *
160e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
170e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
180e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
190e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
200e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
210e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
220e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
230e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
240e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
250e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
260e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org */
270e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org
280e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#ifndef TALK_APP_WEBRTC_PEERCONNECTIONPROXY_H_
290e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#define TALK_APP_WEBRTC_PEERCONNECTIONPROXY_H_
300e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org
310e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#include "talk/app/webrtc/peerconnectioninterface.h"
320e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#include "talk/app/webrtc/proxy.h"
330e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org
340e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.orgnamespace webrtc {
350e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org
360e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org// Define proxy for PeerConnectionInterface.
370e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.orgBEGIN_PROXY_MAP(PeerConnection)
382a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org  PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>,
390e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                local_streams)
402a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org  PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>,
410e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                remote_streams)
420e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD2(bool, AddStream, MediaStreamInterface*,
430e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                const MediaConstraintsInterface*)
440e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*)
452a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org  PROXY_METHOD1(rtc::scoped_refptr<DtmfSenderInterface>,
460e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                CreateDtmfSender, AudioTrackInterface*)
478a77f5bd83ba9386c19ff92f277c7268c1e9ef4awu@webrtc.org  PROXY_METHOD3(bool, GetStats, StatsObserver*,
488a77f5bd83ba9386c19ff92f277c7268c1e9ef4awu@webrtc.org                MediaStreamTrackInterface*,
498a77f5bd83ba9386c19ff92f277c7268c1e9ef4awu@webrtc.org                StatsOutputLevel)
502a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org  PROXY_METHOD2(rtc::scoped_refptr<DataChannelInterface>,
510e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                CreateDataChannel, const std::string&, const DataChannelInit*)
520e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_CONSTMETHOD0(const SessionDescriptionInterface*, local_description)
530e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_CONSTMETHOD0(const SessionDescriptionInterface*, remote_description)
540e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD2(void, CreateOffer, CreateSessionDescriptionObserver*,
550e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                const MediaConstraintsInterface*)
560e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD2(void, CreateAnswer, CreateSessionDescriptionObserver*,
570e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                const MediaConstraintsInterface*)
580e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD2(void, SetLocalDescription, SetSessionDescriptionObserver*,
590e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                SessionDescriptionInterface*)
600e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD2(void, SetRemoteDescription, SetSessionDescriptionObserver*,
610e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                SessionDescriptionInterface*)
620e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD2(bool, UpdateIce, const IceServers&,
630e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org                const MediaConstraintsInterface*)
640e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD1(bool, AddIceCandidate, const IceCandidateInterface*)
65a12d6916209195faf8848ebc7e6c0050766023b2buildbot@webrtc.org  PROXY_METHOD1(void, RegisterUMAObserver, UMAObserver*)
660e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD0(SignalingState, signaling_state)
670e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD0(IceState, ice_state)
680e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD0(IceConnectionState, ice_connection_state)
690e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD0(IceGatheringState, ice_gathering_state)
700e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org  PROXY_METHOD0(void, Close)
710e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.orgEND_PROXY()
720e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org
730e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org}  // namespace webrtc
740e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org
750e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#endif  // TALK_APP_WEBRTC_PEERCONNECTIONPROXY_H_
76