OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_CDM_CDM_FILE_IO_PROVIDER_H_ | |
6 #define MEDIA_CDM_CDM_FILE_IO_PROVIDER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "media/base/media_export.h" | |
10 | |
11 namespace cdm { | |
12 class FileIO; | |
13 class FileIOClient; | |
14 } | |
15 | |
16 namespace media { | |
17 | |
18 class MEDIA_EXPORT CdmFileIOProvider { | |
19 public: | |
20 CdmFileIOProvider(); | |
21 virtual ~CdmFileIOProvider(); | |
22 | |
23 // Creates a FileIO object from the host to do file IO operation. Returns | |
24 // NULL if a FileIO object cannot be obtained. Once a valid FileIO object | |
25 // is returned, |client| must be valid until FileIO::Close() is called. The | |
26 // CDM can call this method multiple times to operate on different files. | |
27 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.
| |
28 | |
29 private: | |
30 DISALLOW_COPY_AND_ASSIGN(CdmFileIOProvider); | |
31 }; | |
32 | |
33 } // namespace media | |
34 | |
35 #endif // MEDIA_CDM_CDM_FILE_IO_PROVIDER_H_ | |
OLD | NEW |