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

Side by Side 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: Changes 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MediaKeysController_h
6 #define MediaKeysController_h
7
8 #include "core/page/Page.h"
9 #include "wtf/PassOwnPtr.h"
10
11 namespace blink {
12 class WebContentDecryptionModule;
13 }
14
15 namespace WebCore {
16
17 class ExecutionContext;
18 class MediaKeysClient;
19
20 class MediaKeysController FINAL : public Supplement<Page> {
21 public:
22 virtual ~MediaKeysController();
23
24 PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptionModule( ExecutionContext*, const String& keySystem);
25
26 static PassOwnPtr<MediaKeysController> create(MediaKeysClient*);
acolwell GONE FROM CHROMIUM 2014/03/19 00:28:54 nit: Can this and supplementName() be private?
jrummell 2014/03/20 19:17:32 Now that provideMediaKeysTo is in this class, not
27 static const char* supplementName();
28 static MediaKeysController* from(Page* page) { return static_cast<MediaKeysC ontroller*>(Supplement<Page>::from(page, supplementName())); }
29
30 protected:
31 explicit MediaKeysController(MediaKeysClient*);
32
33 private:
34 MediaKeysClient* m_client;
35 };
36
37 } // namespace WebCore
38
39 #endif // MediaKeysController_h
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698