| 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 NavigatorRequestMediaKeySystemAccess_h |
| 6 #define NavigatorRequestMediaKeySystemAccess_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "core/frame/Navigator.h" |
| 10 #include "modules/encryptedmedia/MediaKeySystemOptions.h" |
| 11 #include "platform/Supplementable.h" |
| 12 #include "platform/heap/Handle.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class NavigatorRequestMediaKeySystemAccess : public NoBaseWillBeGarbageCollected
<NavigatorRequestMediaKeySystemAccess>, public WillBeHeapSupplement<Navigator> { |
| 17 public: |
| 18 virtual ~NavigatorRequestMediaKeySystemAccess(); |
| 19 |
| 20 static NavigatorRequestMediaKeySystemAccess& from(Navigator&); |
| 21 |
| 22 static ScriptPromise requestMediaKeySystemAccess(ScriptState*, Navigator&, c
onst String& keySystem); |
| 23 static ScriptPromise requestMediaKeySystemAccess( |
| 24 ScriptState*, |
| 25 Navigator&, |
| 26 const String& keySystem, |
| 27 const MediaKeySystemOptions& supportedConfigurations); |
| 28 static ScriptPromise requestMediaKeySystemAccess( |
| 29 ScriptState*, |
| 30 Navigator&, |
| 31 const String& keySystem, |
| 32 const Vector<MediaKeySystemOptions>& supportedConfigurations); |
| 33 ScriptPromise requestMediaKeySystemAccess( |
| 34 ScriptState*, |
| 35 const String& keySystem, |
| 36 const Vector<MediaKeySystemOptions>& supportedConfigurations); |
| 37 |
| 38 virtual void trace(Visitor*) override; |
| 39 |
| 40 private: |
| 41 NavigatorRequestMediaKeySystemAccess(); |
| 42 static const char* supplementName(); |
| 43 }; |
| 44 |
| 45 } // namespace blink |
| 46 |
| 47 #endif // NavigatorRequestMediaKeySystemAccess_h |
| OLD | NEW |