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

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

Issue 665213002: Implement navigator.requestMediaKeySystemAccess() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add comment 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/MediaKeySystemAccess.h
diff --git a/Source/modules/encryptedmedia/MediaKeySystemAccess.h b/Source/modules/encryptedmedia/MediaKeySystemAccess.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f8e627b1cc2e5b08eedc1abd47455fb375aa6b0
--- /dev/null
+++ b/Source/modules/encryptedmedia/MediaKeySystemAccess.h
@@ -0,0 +1,32 @@
+// 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 MediaKeySystemAccess_h
+#define MediaKeySystemAccess_h
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class MediaKeySystemAccess final : public GarbageCollectedFinalized<MediaKeySystemAccess>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ explicit MediaKeySystemAccess(const String& keySystem);
+ virtual ~MediaKeySystemAccess();
+
+ const String& keySystem() const { return m_keySystem; }
+ ScriptPromise createMediaKeys(ScriptState*);
+
+ void trace(Visitor*);
+
+private:
+ const String m_keySystem;
+};
+
+} // namespace blink
+
+#endif // MediaKeySystemAccess_h

Powered by Google App Engine
This is Rietveld 408576698