| 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;
|
| + }
|
| +}
|
|
|