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

Side by Side Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCClient.java

Issue 2377003002: Format all Java in WebRTC. (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
1 /* 1 /*
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 package org.appspot.apprtc; 11 package org.appspot.apprtc;
12 12
13 import org.webrtc.IceCandidate; 13 import org.webrtc.IceCandidate;
14 import org.webrtc.PeerConnection; 14 import org.webrtc.PeerConnection;
15 import org.webrtc.SessionDescription; 15 import org.webrtc.SessionDescription;
16 16
17 import java.util.List; 17 import java.util.List;
18 18
19 /** 19 /**
20 * AppRTCClient is the interface representing an AppRTC client. 20 * AppRTCClient is the interface representing an AppRTC client.
21 */ 21 */
22 public interface AppRTCClient { 22 public interface AppRTCClient {
23
24 /** 23 /**
25 * Struct holding the connection parameters of an AppRTC room. 24 * Struct holding the connection parameters of an AppRTC room.
26 */ 25 */
27 class RoomConnectionParameters { 26 class RoomConnectionParameters {
28 public final String roomUrl; 27 public final String roomUrl;
29 public final String roomId; 28 public final String roomId;
30 public final boolean loopback; 29 public final boolean loopback;
31 public RoomConnectionParameters( 30 public RoomConnectionParameters(String roomUrl, String roomId, boolean loopb ack) {
32 String roomUrl, String roomId, boolean loopback) {
33 this.roomUrl = roomUrl; 31 this.roomUrl = roomUrl;
34 this.roomId = roomId; 32 this.roomId = roomId;
35 this.loopback = loopback; 33 this.loopback = loopback;
36 } 34 }
37 } 35 }
38 36
39 /** 37 /**
40 * Asynchronously connect to an AppRTC room URL using supplied connection 38 * Asynchronously connect to an AppRTC room URL using supplied connection
41 * parameters. Once connection is established onConnectedToRoom() 39 * parameters. Once connection is established onConnectedToRoom()
42 * callback with room parameters is invoked. 40 * callback with room parameters is invoked.
(...skipping 30 matching lines...) Expand all
73 */ 71 */
74 class SignalingParameters { 72 class SignalingParameters {
75 public final List<PeerConnection.IceServer> iceServers; 73 public final List<PeerConnection.IceServer> iceServers;
76 public final boolean initiator; 74 public final boolean initiator;
77 public final String clientId; 75 public final String clientId;
78 public final String wssUrl; 76 public final String wssUrl;
79 public final String wssPostUrl; 77 public final String wssPostUrl;
80 public final SessionDescription offerSdp; 78 public final SessionDescription offerSdp;
81 public final List<IceCandidate> iceCandidates; 79 public final List<IceCandidate> iceCandidates;
82 80
83 public SignalingParameters( 81 public SignalingParameters(List<PeerConnection.IceServer> iceServers, boolea n initiator,
84 List<PeerConnection.IceServer> iceServers, 82 String clientId, String wssUrl, String wssPostUrl, SessionDescription of ferSdp,
85 boolean initiator, String clientId, 83 List<IceCandidate> iceCandidates) {
86 String wssUrl, String wssPostUrl,
87 SessionDescription offerSdp, List<IceCandidate> iceCandidates) {
88 this.iceServers = iceServers; 84 this.iceServers = iceServers;
89 this.initiator = initiator; 85 this.initiator = initiator;
90 this.clientId = clientId; 86 this.clientId = clientId;
91 this.wssUrl = wssUrl; 87 this.wssUrl = wssUrl;
92 this.wssPostUrl = wssPostUrl; 88 this.wssPostUrl = wssPostUrl;
93 this.offerSdp = offerSdp; 89 this.offerSdp = offerSdp;
94 this.iceCandidates = iceCandidates; 90 this.iceCandidates = iceCandidates;
95 } 91 }
96 } 92 }
97 93
(...skipping 28 matching lines...) Expand all
126 * Callback fired once channel is closed. 122 * Callback fired once channel is closed.
127 */ 123 */
128 void onChannelClose(); 124 void onChannelClose();
129 125
130 /** 126 /**
131 * Callback fired once channel error happened. 127 * Callback fired once channel error happened.
132 */ 128 */
133 void onChannelError(final String description); 129 void onChannelError(final String description);
134 } 130 }
135 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698