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

Unified Diff: media/cdm/cdm_file_io_provider.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
« no previous file with comments | « media/cdm/cdm_adapter_unittest.cc ('k') | media/cdm/cdm_file_io_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_file_io_provider.h
diff --git a/media/cdm/cdm_file_io_provider.h b/media/cdm/cdm_file_io_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9fee36cc95df2873f6d63a2d55a44f07bbf76e0
--- /dev/null
+++ b/media/cdm/cdm_file_io_provider.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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_CDM_CDM_FILE_IO_PROVIDER_H_
+#define MEDIA_CDM_CDM_FILE_IO_PROVIDER_H_
+
+#include "base/macros.h"
+#include "media/base/media_export.h"
+
+namespace cdm {
+class FileIO;
+class FileIOClient;
+}
+
+namespace media {
+
+class MEDIA_EXPORT CdmFileIOProvider {
+ public:
+ CdmFileIOProvider();
+ virtual ~CdmFileIOProvider();
+
+ // Creates a FileIO object from the host to do file IO operation. Returns
+ // NULL if a FileIO object cannot be obtained. Once a valid FileIO object
+ // is returned, |client| must be valid until FileIO::Close() is called. The
+ // CDM can call this method multiple times to operate on different files.
+ virtual cdm::FileIO* CreateFileIO(cdm::FileIOClient* client) = 0;
xhwang 2016/04/14 06:46:31 Since this interface only has one Create* method,
jrummell 2016/04/14 22:02:56 Done.
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CdmFileIOProvider);
+};
+
+} // namespace media
+
+#endif // MEDIA_CDM_CDM_FILE_IO_PROVIDER_H_
« no previous file with comments | « media/cdm/cdm_adapter_unittest.cc ('k') | media/cdm/cdm_file_io_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698