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

Unified Diff: Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h

Issue 665213002: Implement navigator.requestMediaKeySystemAccess() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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: Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h
diff --git a/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h b/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h
new file mode 100644
index 0000000000000000000000000000000000000000..5aa37a5a4915ac5cfe2e86ac1d25684891e77f53
--- /dev/null
+++ b/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h
@@ -0,0 +1,47 @@
+// Copyright 2014 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 NavigatorRequestMediaKeySystemAccess_h
+#define NavigatorRequestMediaKeySystemAccess_h
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "core/frame/Navigator.h"
+#include "modules/encryptedmedia/MediaKeySystemOptions.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class NavigatorRequestMediaKeySystemAccess : public NoBaseWillBeGarbageCollected<NavigatorRequestMediaKeySystemAccess>, public WillBeHeapSupplement<Navigator> {
+public:
+ virtual ~NavigatorRequestMediaKeySystemAccess();
+
+ static NavigatorRequestMediaKeySystemAccess& from(Navigator&);
+
+ static ScriptPromise requestMediaKeySystemAccess(ScriptState*, Navigator&, const String& keySystem);
+ static ScriptPromise requestMediaKeySystemAccess(
+ ScriptState*,
+ Navigator&,
+ const String& keySystem,
+ const MediaKeySystemOptions& supportedConfigurations);
+ static ScriptPromise requestMediaKeySystemAccess(
+ ScriptState*,
+ Navigator&,
+ const String& keySystem,
+ const Vector<MediaKeySystemOptions>& supportedConfigurations);
+ ScriptPromise requestMediaKeySystemAccess(
+ ScriptState*,
+ const String& keySystem,
+ const Vector<MediaKeySystemOptions>& supportedConfigurations);
+
+ virtual void trace(Visitor*) override;
+
+private:
+ NavigatorRequestMediaKeySystemAccess();
+ static const char* supplementName();
+};
+
+} // namespace blink
+
+#endif // NavigatorRequestMediaKeySystemAccess_h

Powered by Google App Engine
This is Rietveld 408576698