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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/ClientRecord.java

Issue 1478163002: [Cast,Android,Presentation API] Split CastRouteController into session and media routes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed ArraySet to HashSet Created 5 years, 1 month 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: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/ClientRecord.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/ClientRecord.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/ClientRecord.java
new file mode 100644
index 0000000000000000000000000000000000000000..a84e1e0ae0d5b634ab7d074d2d3fc3a6710c9c9f
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/ClientRecord.java
@@ -0,0 +1,57 @@
+// Copyright 2015 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.chrome.browser.media.router.cast;
+
+import org.chromium.chrome.browser.media.router.MediaRoute;
+
+/**
+ * Contains information about a single client connection to the {@link MediaRoute}.
+ */
+public class ClientRecord {
+ /**
+ * The route id through which the client is connected. Should be a 1:1 relationship.
+ */
+ public final String routeId;
+
+ /**
+ * The unique id of this client.
+ */
+ public final String clientId;
+
+ /**
+ * The Cast application id for this client.
+ */
+ public final String appId;
+
+ /**
+ * Defines the ways other clients can join or leave the corresponding session.
+ */
+ public final String autoJoinPolicy;
+
+ /**
+ * The origin of the frame that created/joined the route.
+ */
+ public final String origin;
+
+ /**
+ * The id of the tab that created/joined the route.
+ */
+ public final int tabId;
+
+ ClientRecord(
+ String routeId,
+ String clientId,
+ String appId,
+ String autoJoinPolicy,
+ String origin,
+ int tabId) {
+ this.routeId = routeId;
+ this.clientId = clientId;
+ this.appId = appId;
+ this.autoJoinPolicy = autoJoinPolicy;
+ this.origin = origin;
+ this.tabId = tabId;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698