Fix typo by renaming RTCSessionDescriptonDelegate -> RTCSessionsDescriptionDelegate
R=fischman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12059004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5946 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
#import "RTCMediaConstraints+Internal.h"
|
||||
#import "RTCMediaStream+Internal.h"
|
||||
#import "RTCSessionDescription+Internal.h"
|
||||
#import "RTCSessionDescriptonDelegate.h"
|
||||
#import "RTCSessionDescriptionDelegate.h"
|
||||
#import "RTCSessionDescription.h"
|
||||
|
||||
#include "talk/app/webrtc/jsep.h"
|
||||
@ -50,8 +50,9 @@ namespace webrtc {
|
||||
class RTCCreateSessionDescriptionObserver
|
||||
: public CreateSessionDescriptionObserver {
|
||||
public:
|
||||
RTCCreateSessionDescriptionObserver(id<RTCSessionDescriptonDelegate> delegate,
|
||||
RTCPeerConnection* peerConnection) {
|
||||
RTCCreateSessionDescriptionObserver(
|
||||
id<RTCSessionDescriptionDelegate> delegate,
|
||||
RTCPeerConnection* peerConnection) {
|
||||
_delegate = delegate;
|
||||
_peerConnection = peerConnection;
|
||||
}
|
||||
@ -76,13 +77,13 @@ class RTCCreateSessionDescriptionObserver
|
||||
}
|
||||
|
||||
private:
|
||||
id<RTCSessionDescriptonDelegate> _delegate;
|
||||
id<RTCSessionDescriptionDelegate> _delegate;
|
||||
RTCPeerConnection* _peerConnection;
|
||||
};
|
||||
|
||||
class RTCSetSessionDescriptionObserver : public SetSessionDescriptionObserver {
|
||||
public:
|
||||
RTCSetSessionDescriptionObserver(id<RTCSessionDescriptonDelegate> delegate,
|
||||
RTCSetSessionDescriptionObserver(id<RTCSessionDescriptionDelegate> delegate,
|
||||
RTCPeerConnection* peerConnection) {
|
||||
_delegate = delegate;
|
||||
_peerConnection = peerConnection;
|
||||
@ -104,7 +105,7 @@ class RTCSetSessionDescriptionObserver : public SetSessionDescriptionObserver {
|
||||
}
|
||||
|
||||
private:
|
||||
id<RTCSessionDescriptonDelegate> _delegate;
|
||||
id<RTCSessionDescriptionDelegate> _delegate;
|
||||
RTCPeerConnection* _peerConnection;
|
||||
};
|
||||
}
|
||||
@ -132,7 +133,7 @@ class RTCSetSessionDescriptionObserver : public SetSessionDescriptionObserver {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)createAnswerWithDelegate:(id<RTCSessionDescriptonDelegate>)delegate
|
||||
- (void)createAnswerWithDelegate:(id<RTCSessionDescriptionDelegate>)delegate
|
||||
constraints:(RTCMediaConstraints*)constraints {
|
||||
talk_base::scoped_refptr<webrtc::RTCCreateSessionDescriptionObserver>
|
||||
observer(new talk_base::RefCountedObject<
|
||||
@ -140,7 +141,7 @@ class RTCSetSessionDescriptionObserver : public SetSessionDescriptionObserver {
|
||||
self.peerConnection->CreateAnswer(observer, constraints.constraints);
|
||||
}
|
||||
|
||||
- (void)createOfferWithDelegate:(id<RTCSessionDescriptonDelegate>)delegate
|
||||
- (void)createOfferWithDelegate:(id<RTCSessionDescriptionDelegate>)delegate
|
||||
constraints:(RTCMediaConstraints*)constraints {
|
||||
talk_base::scoped_refptr<webrtc::RTCCreateSessionDescriptionObserver>
|
||||
observer(new talk_base::RefCountedObject<
|
||||
@ -154,7 +155,7 @@ class RTCSetSessionDescriptionObserver : public SetSessionDescriptionObserver {
|
||||
}
|
||||
|
||||
- (void)setLocalDescriptionWithDelegate:
|
||||
(id<RTCSessionDescriptonDelegate>)delegate
|
||||
(id<RTCSessionDescriptionDelegate>)delegate
|
||||
sessionDescription:(RTCSessionDescription*)sdp {
|
||||
talk_base::scoped_refptr<webrtc::RTCSetSessionDescriptionObserver> observer(
|
||||
new talk_base::RefCountedObject<webrtc::RTCSetSessionDescriptionObserver>(
|
||||
@ -163,7 +164,7 @@ class RTCSetSessionDescriptionObserver : public SetSessionDescriptionObserver {
|
||||
}
|
||||
|
||||
- (void)setRemoteDescriptionWithDelegate:
|
||||
(id<RTCSessionDescriptonDelegate>)delegate
|
||||
(id<RTCSessionDescriptionDelegate>)delegate
|
||||
sessionDescription:(RTCSessionDescription*)sdp {
|
||||
talk_base::scoped_refptr<webrtc::RTCSetSessionDescriptionObserver> observer(
|
||||
new talk_base::RefCountedObject<webrtc::RTCSetSessionDescriptionObserver>(
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
@class RTCMediaConstraints;
|
||||
@class RTCMediaStream;
|
||||
@class RTCSessionDescription;
|
||||
@protocol RTCSessionDescriptonDelegate;
|
||||
@protocol RTCSessionDescriptionDelegate;
|
||||
|
||||
// RTCPeerConnection is an ObjectiveC friendly wrapper around a PeerConnection
|
||||
// object. See the documentation in talk/app/webrtc/peerconnectioninterface.h.
|
||||
@ -67,25 +67,25 @@
|
||||
- (void)removeStream:(RTCMediaStream *)stream;
|
||||
|
||||
// Create a new offer.
|
||||
// Success or failure will be reported via RTCSessionDescriptonDelegate.
|
||||
- (void)createOfferWithDelegate:(id<RTCSessionDescriptonDelegate>)delegate
|
||||
// Success or failure will be reported via RTCSessionDescriptionDelegate.
|
||||
- (void)createOfferWithDelegate:(id<RTCSessionDescriptionDelegate>)delegate
|
||||
constraints:(RTCMediaConstraints *)constraints;
|
||||
|
||||
// Create an answer to an offer.
|
||||
// Success or failure will be reported via RTCSessionDescriptonDelegate.
|
||||
- (void)createAnswerWithDelegate:(id<RTCSessionDescriptonDelegate>)delegate
|
||||
// Success or failure will be reported via RTCSessionDescriptionDelegate.
|
||||
- (void)createAnswerWithDelegate:(id<RTCSessionDescriptionDelegate>)delegate
|
||||
constraints:(RTCMediaConstraints *)constraints;
|
||||
|
||||
// Sets the local session description.
|
||||
// Success or failure will be reported via RTCSessionDescriptonDelegate.
|
||||
// Success or failure will be reported via RTCSessionDescriptionDelegate.
|
||||
- (void)
|
||||
setLocalDescriptionWithDelegate:(id<RTCSessionDescriptonDelegate>)delegate
|
||||
setLocalDescriptionWithDelegate:(id<RTCSessionDescriptionDelegate>)delegate
|
||||
sessionDescription:(RTCSessionDescription *)sdp;
|
||||
|
||||
// Sets the remote session description.
|
||||
// Success or failure will be reported via RTCSessionDescriptonDelegate.
|
||||
// Success or failure will be reported via RTCSessionDescriptionDelegate.
|
||||
- (void)
|
||||
setRemoteDescriptionWithDelegate:(id<RTCSessionDescriptonDelegate>)delegate
|
||||
setRemoteDescriptionWithDelegate:(id<RTCSessionDescriptionDelegate>)delegate
|
||||
sessionDescription:(RTCSessionDescription *)sdp;
|
||||
|
||||
// Restarts or updates the ICE Agent process of gathering local candidates
|
||||
|
||||
@ -33,9 +33,9 @@
|
||||
extern NSString* const kRTCSessionDescriptionDelegateErrorDomain;
|
||||
extern int const kRTCSessionDescriptionDelegateErrorCode;
|
||||
|
||||
// RTCSessionDescriptonDelegate is a protocol for listening to callback messages
|
||||
// when RTCSessionDescriptions are created or set.
|
||||
@protocol RTCSessionDescriptonDelegate<NSObject>
|
||||
// RTCSessionDescriptionDelegate is a protocol for listening to callback
|
||||
// messages when RTCSessionDescriptions are created or set.
|
||||
@protocol RTCSessionDescriptionDelegate<NSObject>
|
||||
|
||||
// Called when creating a session.
|
||||
- (void)peerConnection:(RTCPeerConnection *)peerConnection
|
||||
Reference in New Issue
Block a user