blob: 514739e7a3b56fbba6406057a737fe96dac62e94 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_CDM_RENDERER_KEY_SYSTEM_SUPPORT_UPDATE_H_
#define COMPONENTS_CDM_RENDERER_KEY_SYSTEM_SUPPORT_UPDATE_H_
#include "content/public/renderer/render_frame.h"
#include "media/base/key_system_info.h"
#include "media/base/key_systems_support_registration.h"
namespace cdm {
// Get the list of supported key systems. `can_persist_data` specifies whether
// any data can be persisted by Chrome or by MediaDrm (e.g. should be false in
// incognito mode). `cb` is called with the list of available key systems, and
// may be called multiple times if the list changes (e.g. a new key system
// becomes available).
std::unique_ptr<media::KeySystemSupportRegistration>
GetSupportedKeySystemsUpdates(content::RenderFrame* render_frame,
bool can_persist_data,
media::GetSupportedKeySystemsCB cb);
} // namespace cdm
#endif // COMPONENTS_CDM_RENDERER_KEY_SYSTEM_SUPPORT_UPDATE_H_