Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: media/cdm/cdm_adapter.h

Issue 1888603002: Add CdmFileIOProvider interface for use by cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cdm/cdm_adapter.h
diff --git a/media/cdm/cdm_adapter.h b/media/cdm/cdm_adapter.h
index cb08f4a155d62ad63d7e75579be789c323f4e77d..72c7a8eb076659fbbd217ddbd002edf2191ef3e0 100644
--- a/media/cdm/cdm_adapter.h
+++ b/media/cdm/cdm_adapter.h
@@ -32,6 +32,7 @@ namespace media {
class AudioFramesImpl;
class CdmAllocator;
+class CdmFileIOProvider;
class CdmWrapper;
class MEDIA_EXPORT CdmAdapter : public MediaKeys,
@@ -42,14 +43,16 @@ class MEDIA_EXPORT CdmAdapter : public MediaKeys,
public:
// Create the CDM using |cdm_path| and initialize it using |key_system| and
// |cdm_config|. |allocator| is to be used whenever the CDM needs memory
- // and to create VideoFrames. Callbacks will be used for events generated
- // by the CDM. |cdm_created_cb| will be called when the CDM is loaded and
- // initialized.
+ // and to create VideoFrames. |file_io_provider| is to be used whenever the
+ // CDM needs access to the file system. Callbacks will be used for events
+ // generated by the CDM. |cdm_created_cb| will be called when the CDM is
+ // loaded and initialized.
static void Create(
const std::string& key_system,
const base::FilePath& cdm_path,
const CdmConfig& cdm_config,
scoped_ptr<CdmAllocator> allocator,
+ scoped_ptr<CdmFileIOProvider> file_io_provider,
const SessionMessageCB& session_message_cb,
const SessionClosedCB& session_closed_cb,
const LegacySessionErrorCB& legacy_session_error_cb,
@@ -149,6 +152,7 @@ class MEDIA_EXPORT CdmAdapter : public MediaKeys,
CdmAdapter(const std::string& key_system,
const CdmConfig& cdm_config,
scoped_ptr<CdmAllocator> allocator,
+ scoped_ptr<CdmFileIOProvider> file_io_provider,
const SessionMessageCB& session_message_cb,
const SessionClosedCB& session_closed_cb,
const LegacySessionErrorCB& legacy_session_error_cb,
@@ -210,6 +214,7 @@ class MEDIA_EXPORT CdmAdapter : public MediaKeys,
ChannelLayout audio_channel_layout_;
scoped_ptr<CdmAllocator> allocator_;
+ scoped_ptr<CdmFileIOProvider> file_io_provider_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;

Powered by Google App Engine
This is Rietveld 408576698