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

Unified Diff: media/cdm/cdm_file_io.h

Issue 1888603002: Add CdmFileIOProvider interface for use by cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Win compile issue 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_file_io.h
diff --git a/media/cdm/cdm_file_io.h b/media/cdm/cdm_file_io.h
new file mode 100644
index 0000000000000000000000000000000000000000..812bf5fa0ac18c15358a66f9ffdff5520dc10f8b
--- /dev/null
+++ b/media/cdm/cdm_file_io.h
@@ -0,0 +1,30 @@
+// 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_H_
+#define MEDIA_CDM_CDM_FILE_IO_H_
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "media/base/media_export.h"
+#include "media/cdm/api/content_decryption_module.h"
+
+namespace media {
+
+// Implements a version of cdm::FileIO with a public destructor so it can be
+// used with std::unique_ptr.
+class MEDIA_EXPORT CdmFileIO : NON_EXPORTED_BASE(public cdm::FileIO) {
+ public:
+ ~CdmFileIO() override;
+
+ protected:
+ CdmFileIO();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CdmFileIO);
+};
+
+} // namespace media
+
+#endif // MEDIA_CDM_CDM_FILE_IO_H_
« no previous file with comments | « media/cdm/cdm_adapter_unittest.cc ('k') | media/cdm/cdm_file_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698