Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |