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 NavigatorRequestMediaKeySystemAccess_h | 5 #ifndef NavigatorRequestMediaKeySystemAccess_h |
6 #define NavigatorRequestMediaKeySystemAccess_h | 6 #define NavigatorRequestMediaKeySystemAccess_h |
7 | 7 |
8 #include "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8Binding.h" |
11 #include "bindings/modules/v8/V8MediaKeySystemOptions.h" | 11 #include "bindings/modules/v8/V8MediaKeySystemOptions.h" |
12 #include "core/frame/Navigator.h" | 12 #include "core/frame/Navigator.h" |
13 #include "modules/encryptedmedia/MediaKeySystemOptions.h" | 13 #include "modules/encryptedmedia/MediaKeySystemOptions.h" |
14 #include "platform/Supplementable.h" | 14 #include "platform/Supplementable.h" |
15 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class NavigatorRequestMediaKeySystemAccess final : public NoBaseWillBeGarbageCol
lected<NavigatorRequestMediaKeySystemAccess>, public WillBeHeapSupplement<Naviga
tor> { | 19 class NavigatorRequestMediaKeySystemAccess final : public NoBaseWillBeGarbageCol
lectedFinalized<NavigatorRequestMediaKeySystemAccess>, public WillBeHeapSuppleme
nt<Navigator> { |
| 20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorRequestMediaKeySystemAccess); |
20 public: | 21 public: |
21 virtual ~NavigatorRequestMediaKeySystemAccess(); | 22 virtual ~NavigatorRequestMediaKeySystemAccess(); |
22 | 23 |
23 static NavigatorRequestMediaKeySystemAccess& from(Navigator&); | 24 static NavigatorRequestMediaKeySystemAccess& from(Navigator&); |
24 | 25 |
25 static ScriptPromise requestMediaKeySystemAccess( | 26 static ScriptPromise requestMediaKeySystemAccess( |
26 ScriptState*, | 27 ScriptState*, |
27 Navigator&, | 28 Navigator&, |
28 const String& keySystem); | 29 const String& keySystem); |
29 static ScriptPromise requestMediaKeySystemAccess( | 30 static ScriptPromise requestMediaKeySystemAccess( |
(...skipping 22 matching lines...) Expand all Loading... |
52 { | 53 { |
53 MediaKeySystemOptions impl; | 54 MediaKeySystemOptions impl; |
54 V8MediaKeySystemOptions::toImpl(isolate, value, impl, exceptionState); | 55 V8MediaKeySystemOptions::toImpl(isolate, value, impl, exceptionState); |
55 return impl; | 56 return impl; |
56 } | 57 } |
57 }; | 58 }; |
58 | 59 |
59 } // namespace blink | 60 } // namespace blink |
60 | 61 |
61 #endif // NavigatorRequestMediaKeySystemAccess_h | 62 #endif // NavigatorRequestMediaKeySystemAccess_h |
OLD | NEW |