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

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

Issue 540383002: Implementation of DevToolsBridgeServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@session
Patch Set: findbugs fixes. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SignalingReceiver.java
diff --git a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SignalingReceiver.java b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SignalingReceiver.java
new file mode 100644
index 0000000000000000000000000000000000000000..ab569b8e287a432ad3c0de876b83a5a0d1160608
--- /dev/null
+++ b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SignalingReceiver.java
@@ -0,0 +1,44 @@
+// 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.List;
+
+/**
+ * Signaling channel interface. Methods are marshalled through GCM.
+ * Direct calling supported for tests.
+ *
+ * Primary reason of the signaling channel is supporting debugging sessions (so why
+ * it looks like SessionBase.ServerSessionInterface with session ids). It also
+ * may be used for retrieving information when establishing session is not appropriate.
+ */
+public interface SignalingReceiver {
+ /**
+ * Starts new session and assigns sessionId to it. Passes all arguments to
+ * the ServerSession object. Session ID must be globay unique (like long random) to
+ * avoid conflicts among clients.
+ */
+ void startSession(
+ String sessionId,
+ RTCConfiguration config,
+ String offer,
+ SessionBase.NegotiationCallback callback);
+
+ /**
+ * Passes call to the appropriate ServerSession object (if it still exists).
+ */
+ void renegotiate(
+ String sessionId,
+ String offer,
+ SessionBase.NegotiationCallback callback);
+
+ /**
+ * Passes call to the appropriate ServerSession object (if it still exists).
+ */
+ public void iceExchange(
+ String sessionId,
+ List<String> clientCandidates,
+ SessionBase.IceExchangeCallback callback);
+}

Powered by Google App Engine
This is Rietveld 408576698