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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionRecord.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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CreateRouteRequest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionRecord.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionRecord.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionRecord.java
new file mode 100644
index 0000000000000000000000000000000000000000..d81948d5a3c1368df1b2ac4da4559c36fccd11d5
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionRecord.java
@@ -0,0 +1,43 @@
+// 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 java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Contains the information about the Cast session associated with the route.
+ */
+public class SessionRecord {
+ /**
+ * Clients connected to this session.
+ */
+ public Set<String> clientIds = new HashSet<String>();
+
+ /**
+ * Routes connected to this session.
+ */
+ public Set<String> routeIds = new HashSet<String>();
+
+ /**
+ * The sink id this session is connected to.
+ */
+ public final String sinkId;
+
+ /**
+ * The session.
+ */
+ public final CastRouteController session;
+
+ /**
+ * Whether is session is being stopped at the moment.
+ */
+ public boolean isStopping = false;
+
+ SessionRecord(String sinkId, CastRouteController session) {
+ this.sinkId = sinkId;
+ this.session = session;
+ }
+}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CreateRouteRequest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698