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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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