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

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

Issue 807723004: Cast audio only policy enforcement support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected unit test comment. 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_auth_util.h
diff --git a/extensions/browser/api/cast_channel/cast_auth_util.h b/extensions/browser/api/cast_channel/cast_auth_util.h
index b68d211f9704fb41913a87b58426239bb69e757b..3ce37b6310bc2509873554b006c31e7f58e5904a 100644
--- a/extensions/browser/api/cast_channel/cast_auth_util.h
+++ b/extensions/browser/api/cast_channel/cast_auth_util.h
@@ -33,6 +33,8 @@ struct AuthResult {
ERROR_UNEXPECTED_AUTH_LIBRARY_RESULT
};
+ enum PolicyType { POLICY_NONE = 0, POLICY_AUDIO_ONLY = 1 << 0 };
+
// Constructs a AuthResult that corresponds to success.
AuthResult();
~AuthResult();
@@ -48,6 +50,7 @@ struct AuthResult {
std::string error_message;
ErrorType error_type;
int nss_error_code;
+ unsigned int channel_policy;
Kevin M 2015/01/14 00:26:16 Policies, since there can be >1?
vadimgo 2015/01/14 01:16:14 Done.
private:
AuthResult(const std::string& error_message,

Powered by Google App Engine
This is Rietveld 408576698