// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_CDM_CDM_DOCUMENT_SERVICE_H_ #define MEDIA_CDM_CDM_DOCUMENT_SERVICE_H_ #include <string> #include <vector> #include "base/functional/callback.h" #include "build/build_config.h" #include "media/base/media_export.h" #if BUILDFLAG(IS_WIN) #include "media/cdm/media_foundation_cdm_data.h" #endif // BUILDFLAG(IS_WIN) namespace media { // Important events happened to the CDM. #if BUILDFLAG(IS_WIN) enum class CdmEvent { // Significant (e.g. played >1 minute) successful playback happened using the // CDM. kSignificantPlayback, // Error happened during playback using the CDM. kPlaybackError, // Error happened in the CDM except for Hardware Context Reset. kCdmError, // Hardware context reset happened. kHardwareContextReset, }; #endif // BUILDFLAG(IS_WIN) class MEDIA_EXPORT CdmDocumentService { … }; } // namespace media #endif // MEDIA_CDM_CDM_DOCUMENT_SERVICE_H_