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

Unified Diff: extensions/browser/api/cast_channel/cast_socket.h

Issue 807723004: Cast audio only policy enforcement support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check audio only policy against client auth certificate part of the response Created 5 years, 11 months 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: extensions/browser/api/cast_channel/cast_socket.h
diff --git a/extensions/browser/api/cast_channel/cast_socket.h b/extensions/browser/api/cast_channel/cast_socket.h
index 2cb56a6ea538d35accf0e6dfdb705d0fa2f69bec..0ca4e3911b52c89d169bc87a0d9f00a37a6696e9 100644
--- a/extensions/browser/api/cast_channel/cast_socket.h
+++ b/extensions/browser/api/cast_channel/cast_socket.h
@@ -76,6 +76,10 @@ class CastSocket : public ApiResource {
// Sets the channel id generated by ApiResourceManager.
virtual void set_id(int id) = 0;
+ // Sets whether this socket is for a channel to a device claiming a video out
+ // capability.
+ virtual void set_has_video_out(bool has_video_out) = 0;
+
// The authentication level requested for the channel.
virtual ChannelAuthType channel_auth() const = 0;
@@ -138,6 +142,7 @@ class CastSocketImpl : public CastSocket {
const net::IPEndPoint& ip_endpoint() const override;
int id() const override;
void set_id(int channel_id) override;
+ void set_has_video_out(bool has_video_out) override;
ChannelAuthType channel_auth() const override;
std::string cast_url() const override;
ReadyState ready_state() const override;
@@ -294,6 +299,10 @@ class CastSocketImpl : public CastSocket {
// canceled.
bool is_canceled_;
+ // Whether this socket is for a channel to a device claiming a video out
+ // capability.
+ bool has_video_out_;
+
// Connection flow state machine state.
proto::ConnectionState connect_state_;

Powered by Google App Engine
This is Rietveld 408576698