blob: 98a475eca6a9c5c8a01a396524c1200176e1f76f [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NavigatorRequestMediaKeySystemAccess_h
#define NavigatorRequestMediaKeySystemAccess_h
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/modules/v8/V8MediaKeySystemConfiguration.h"
#include "core/frame/Navigator.h"
#include "modules/encryptedmedia/MediaKeySystemConfiguration.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/Forward.h"
namespace blink {
class NavigatorRequestMediaKeySystemAccess {
STATIC_ONLY(NavigatorRequestMediaKeySystemAccess);
public:
static ScriptPromise requestMediaKeySystemAccess(
ScriptState*,
Navigator&,
const String& key_system,
const HeapVector<MediaKeySystemConfiguration>& supported_configurations);
};
} // namespace blink
#endif // NavigatorRequestMediaKeySystemAccess_h