blob: 0e0a7b5565da15471e985ee4d0098a1f5e6b60a0 [file] [log] [blame]
// Copyright 2019 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 MEDIA_FUCHSIA_CDM_FUCHSIA_CDM_PROVIDER_H_
#define MEDIA_FUCHSIA_CDM_FUCHSIA_CDM_PROVIDER_H_
#include <fuchsia/media/drm/cpp/fidl.h>
#include <string>
#include "media/base/media_export.h"
namespace media {
// Interface to connect fuchsia::media::drm::ContentDecryptionModule to the
// remote service.
class MEDIA_EXPORT FuchsiaCdmProvider {
public:
virtual ~FuchsiaCdmProvider() = default;
virtual void CreateCdmInterface(
const std::string& key_system,
fidl::InterfaceRequest<fuchsia::media::drm::ContentDecryptionModule>
cdm_request) = 0;
};
} // namespace media
#endif // MEDIA_FUCHSIA_CDM_FUCHSIA_CDM_PROVIDER_H_