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

Unified Diff: chrome/browser/media/protected_media_identifier_whitelist.h

Issue 2816773002: Added switch for bypassing protected media identifier permission (Closed)
Patch Set: Added switch for bypassing permissions Created 3 years, 7 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: chrome/browser/media/protected_media_identifier_whitelist.h
diff --git a/chrome/browser/media/protected_media_identifier_whitelist.h b/chrome/browser/media/protected_media_identifier_whitelist.h
new file mode 100644
index 0000000000000000000000000000000000000000..2406f7160fc434b68083ecf92adc5c4e38e525ac
--- /dev/null
+++ b/chrome/browser/media/protected_media_identifier_whitelist.h
@@ -0,0 +1,21 @@
+// Copyright 2017 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.
+
+#ifndef CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_WHITELIST_H_
+#define CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_WHITELIST_H_
+
+#include "components/content_settings/core/common/content_settings.h"
+#include "url/gurl.h"
+
+class ProtectedMediaIdentifierWhitelist {
+ public:
+ ProtectedMediaIdentifierWhitelist();
+ ~ProtectedMediaIdentifierWhitelist();
+
+ bool IsOriginWhitelisted(const GURL& requesting_origin) const;
xhwang 2017/05/04 22:10:59 Looks like we don't need a class then? Shall we ju
Vaage 2017/05/05 16:10:03 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(ProtectedMediaIdentifierWhitelist);
+};
+
+#endif // CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_WHITELIST_H_

Powered by Google App Engine
This is Rietveld 408576698