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

Side by Side Diff: webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.h

Issue 2343403002: Rename AppRTCDemo on Android and iOS to AppRTCMobile (Closed)
Patch Set: Rebase Created 4 years, 2 months 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import <Foundation/Foundation.h>
12
13 #import "WebRTC/RTCIceCandidate.h"
14 #import "WebRTC/RTCSessionDescription.h"
15
16 typedef enum {
17 kARDSignalingMessageTypeCandidate,
18 kARDSignalingMessageTypeCandidateRemoval,
19 kARDSignalingMessageTypeOffer,
20 kARDSignalingMessageTypeAnswer,
21 kARDSignalingMessageTypeBye,
22 } ARDSignalingMessageType;
23
24 @interface ARDSignalingMessage : NSObject
25
26 @property(nonatomic, readonly) ARDSignalingMessageType type;
27
28 + (ARDSignalingMessage *)messageFromJSONString:(NSString *)jsonString;
29 - (NSData *)JSONData;
30
31 @end
32
33 @interface ARDICECandidateMessage : ARDSignalingMessage
34
35 @property(nonatomic, readonly) RTCIceCandidate *candidate;
36
37 - (instancetype)initWithCandidate:(RTCIceCandidate *)candidate;
38
39 @end
40
41 @interface ARDICECandidateRemovalMessage : ARDSignalingMessage
42
43 @property(nonatomic, readonly) NSArray<RTCIceCandidate *> *candidates;
44
45 - (instancetype)initWithRemovedCandidates:
46 (NSArray<RTCIceCandidate *> *)candidates;
47
48 @end
49
50 @interface ARDSessionDescriptionMessage : ARDSignalingMessage
51
52 @property(nonatomic, readonly) RTCSessionDescription *sessionDescription;
53
54 - (instancetype)initWithDescription:(RTCSessionDescription *)description;
55
56 @end
57
58 @interface ARDByeMessage : ARDSignalingMessage
59 @end
OLDNEW
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/ARDSignalingChannel.h ('k') | webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698