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

Unified Diff: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/RTCConfiguration.java

Issue 1142463003: Remove devtools_bridge component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/RTCConfiguration.java
diff --git a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/RTCConfiguration.java b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/RTCConfiguration.java
deleted file mode 100644
index bb2dbb039979982e9cff272051931a5cda2a5ed2..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/RTCConfiguration.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.components.devtools_bridge;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-/**
- * Represents RTCConfiguration (http://www.w3.org/TR/webrtc/#rtcconfiguration-type).
- * Replacement for List<PeerConnection.IceServer> in Java WebRTC API.
- * Transferable through signaling channel.
- * Immutable.
- */
-public class RTCConfiguration {
- /**
- * Single ICE server description.
- */
- public static class IceServer {
- public final String uri;
- public final String username;
- public final String credential;
-
- public IceServer(String uri, String username, String credential) {
- this.uri = uri;
- this.username = username;
- this.credential = credential;
- }
- }
-
- public final List<IceServer> iceServers;
-
- private RTCConfiguration(List<IceServer> iceServers) {
- this.iceServers = Collections.unmodifiableList(new ArrayList<IceServer>(iceServers));
- }
-
- public RTCConfiguration() {
- this(Collections.<IceServer>emptyList());
- }
-
- /**
- * Builder for RTCConfiguration.
- */
- public static class Builder {
- private final List<IceServer> mIceServers = new ArrayList<IceServer>();
-
- public RTCConfiguration build() {
- return new RTCConfiguration(mIceServers);
- }
-
- public Builder addIceServer(String uri, String username, String credential) {
- mIceServers.add(new IceServer(uri, username, credential));
- return this;
- }
-
- public Builder addIceServer(String uri) {
- return addIceServer(uri, "", "");
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698