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

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

Issue 195053004: Create Pepper-based CDM for EME WD (Blink changes) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move provideMediaKeysTo() to MediaKeysController Created 6 years, 9 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/MediaKeysController.h
diff --git a/Source/modules/encryptedmedia/MediaKeysController.h b/Source/modules/encryptedmedia/MediaKeysController.h
new file mode 100644
index 0000000000000000000000000000000000000000..dba44b2c6d92326be8ef16885ae34c81d1ec62d1
--- /dev/null
+++ b/Source/modules/encryptedmedia/MediaKeysController.h
@@ -0,0 +1,38 @@
+// 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 MediaKeysController_h
+#define MediaKeysController_h
+
+#include "core/page/Page.h"
+#include "wtf/PassOwnPtr.h"
+
+namespace blink {
+class WebContentDecryptionModule;
+}
+
+namespace WebCore {
+
+class ExecutionContext;
+class MediaKeysClient;
+
+class MediaKeysController FINAL : public Supplement<Page> {
+public:
+ virtual ~MediaKeysController();
+
+ PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptionModule(ExecutionContext*, const String& keySystem);
+
+ static void provideMediaKeysTo(Page&, MediaKeysClient*);
+ static MediaKeysController* from(Page* page) { return static_cast<MediaKeysController*>(Supplement<Page>::from(page, supplementName())); }
+
+private:
+ explicit MediaKeysController(MediaKeysClient*);
+ static const char* supplementName();
+ MediaKeysClient* m_client;
+};
+
+} // namespace WebCore
+
+#endif // MediaKeysController_h
+

Powered by Google App Engine
This is Rietveld 408576698