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..62f4c7fca505aa2c3c951fd1acf3e301f7f6652a |
--- /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.ArrayList; |
+import java.util.List; |
+ |
+/** |
+ * Contains the information about the Cast session associated with the route. |
+ */ |
+public class SessionRecord { |
+ /** |
+ * Clients connected to this session. |
+ */ |
+ public List<String> clientIds = new ArrayList<String>(); |
mlamouri (slow - plz ping)
2015/11/27 14:23:39
Should they be unique? If yes, could they be a has
whywhat
2015/11/27 19:44:39
Done.
|
+ |
+ /** |
+ * Routes connected to this session. |
+ */ |
+ public List<String> routeIds = new ArrayList<String>(); |
mlamouri (slow - plz ping)
2015/11/27 14:23:39
ditto
whywhat
2015/11/27 19:44:39
Done.
|
+ |
+ /** |
+ * 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; |
+ } |
+} |