blob: 031e8113fd62d81c4b7a25bda3f60aae7c0bb8cd [file] [log] [blame]
// Copyright 2021 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 CONTENT_BROWSER_MEDIA_KEY_SYSTEM_SUPPORT_WIN_H_
#define CONTENT_BROWSER_MEDIA_KEY_SYSTEM_SUPPORT_WIN_H_
#include <string>
#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/optional.h"
#include "content/public/common/cdm_info.h"
namespace content {
using CdmCapabilityCB = base::OnceCallback<void(base::Optional<CdmCapability>)>;
// Returns the hardware secure CdmCapability supported in MediaFoundationService
// for `key_system` by the CDM located in `cdm_path`.
// TODO(xhwang): Also support software secure CdmCapability supported in
// MediaFoundationService.
void GetMediaFoundationServiceHardwareSecureCdmCapability(
const std::string& key_system,
const base::FilePath& cdm_path,
CdmCapabilityCB cdm_capability_cb);
} // namespace content
#endif // CONTENT_BROWSER_MEDIA_KEY_SYSTEM_SUPPORT_WIN_H_