OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MediaKeysClient_h | 5 #ifndef MediaKeysClient_h |
6 #define MediaKeysClient_h | 6 #define MediaKeysClient_h |
7 | 7 |
8 #include "wtf/PassOwnPtr.h" | 8 #include "wtf/PassOwnPtr.h" |
9 #include "wtf/text/WTFString.h" | 9 #include "wtf/text/WTFString.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 class WebContentDecryptionModule; | 12 class WebContentDecryptionModule; |
13 } | 13 } |
14 | 14 |
15 namespace WebCore { | 15 namespace WebCore { |
16 | 16 |
17 class ExecutionContext; | 17 class ExecutionContext; |
18 class Page; | 18 class Page; |
19 | 19 |
20 class MediaKeysClient { | 20 class MediaKeysClient { |
21 public: | 21 public: |
22 virtual PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptio
nModule(ExecutionContext*, const String& keySystem) = 0; | 22 virtual PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptio
nModule(ExecutionContext*, const String& keySystem) = 0; |
23 | 23 |
24 protected: | 24 protected: |
25 virtual ~MediaKeysClient() { } | 25 virtual ~MediaKeysClient() { } |
26 }; | 26 }; |
27 | 27 |
28 void provideMediaKeysTo(Page&, MediaKeysClient*); | |
29 | |
30 } // namespace WebCore | 28 } // namespace WebCore |
31 | 29 |
32 #endif // MediaKeysClient_h | 30 #endif // MediaKeysClient_h |
33 | 31 |
OLD | NEW |