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

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: Removed some unnecessary changes 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/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;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698