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 void provideMediaKeysTo(Page&, MediaKeysClient*); |
| 27 static MediaKeysController* from(Page* page) { return static_cast<MediaKeysC
ontroller*>(Supplement<Page>::from(page, supplementName())); } |
| 28 |
| 29 private: |
| 30 explicit MediaKeysController(MediaKeysClient*); |
| 31 static const char* supplementName(); |
| 32 MediaKeysClient* m_client; |
| 33 }; |
| 34 |
| 35 } // namespace WebCore |
| 36 |
| 37 #endif // MediaKeysController_h |
| 38 |
OLD | NEW |