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

Side by Side Diff: content/public/common/cdm_info.h

Issue 2582463003: media: Verify CDM Host files (Closed)
Patch Set: comments addressed Created 3 years, 10 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 | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/common/content_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_CDM_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CDM_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_CDM_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_CDM_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 // Path to the library implementing the CDM. May be empty if the 32 // Path to the library implementing the CDM. May be empty if the
33 // CDM is not a separate library (e.g. Widevine on Android). 33 // CDM is not a separate library (e.g. Widevine on Android).
34 base::FilePath path; 34 base::FilePath path;
35 35
36 // List of codecs supported by the CDM (e.g. vp8). 36 // List of codecs supported by the CDM (e.g. vp8).
37 // TODO(jrummell): use the enums from media::AudioCodec and media::VideoCodec 37 // TODO(jrummell): use the enums from media::AudioCodec and media::VideoCodec
38 // instead of strings. 38 // instead of strings.
39 std::vector<std::string> supported_codecs; 39 std::vector<std::string> supported_codecs;
40 }; 40 };
41 41
42 struct CONTENT_EXPORT CdmHostFilePath {
43 CdmHostFilePath(const base::FilePath& file_path,
44 const base::FilePath& sig_file_path);
45 ~CdmHostFilePath();
46
47 // Path to a file that takes part in hosting the CDM.
48 base::FilePath file_path;
49
50 // Path to a signature file of the file at |file_path|.
51 base::FilePath sig_file_path;
52 };
53
42 } // namespace content 54 } // namespace content
43 55
44 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_ 56 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698