diff options
Diffstat (limited to 'media/cdm/ppapi/cdm_adapter.cc')
-rw-r--r-- | media/cdm/ppapi/cdm_adapter.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/cdm/ppapi/cdm_adapter.cc b/media/cdm/ppapi/cdm_adapter.cc index d928903..d99926c 100644 --- a/media/cdm/ppapi/cdm_adapter.cc +++ b/media/cdm/ppapi/cdm_adapter.cc @@ -4,6 +4,7 @@ #include "media/cdm/ppapi/cdm_adapter.h" +#include "media/cdm/ppapi/cdm_file_io_impl.h" #include "media/cdm/ppapi/cdm_helpers.h" #include "media/cdm/ppapi/cdm_logging.h" #include "media/cdm/ppapi/supported_cdm_versions.h" @@ -921,6 +922,11 @@ void CdmAdapter::OnDeferredInitializationDone(cdm::StreamType stream_type, } } +// The CDM owns the returned object and must call FileIO::Close() to release it. +cdm::FileIO* CdmAdapter::CreateFileIO(cdm::FileIOClient* client) { + return new CdmFileIOImpl(client, pp_instance()); +} + #if defined(OS_CHROMEOS) void CdmAdapter::SendPlatformChallengeDone(int32_t result) { challenge_in_progress_ = false; |