Chromium Code Reviews| 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_ |