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

Side by Side Diff: third_party/widevine/cdm/widevine_cdm_common.h

Issue 42003002: Extract supported codecs from CDM component manifest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added includes; removed DLOG Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 5 #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 9
10 // This file defines constants common to all Widevine CDM versions. 10 // This file defines constants common to all Widevine CDM versions.
(...skipping 27 matching lines...) Expand all
38 // File name of the adapter on different platforms. 38 // File name of the adapter on different platforms.
39 const char kWidevineCdmAdapterFileName[] = 39 const char kWidevineCdmAdapterFileName[] =
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 "widevinecdmadapter.plugin"; 41 "widevinecdmadapter.plugin";
42 #elif defined(OS_WIN) 42 #elif defined(OS_WIN)
43 "widevinecdmadapter.dll"; 43 "widevinecdmadapter.dll";
44 #else // OS_LINUX, etc. 44 #else // OS_LINUX, etc.
45 "libwidevinecdmadapter.so"; 45 "libwidevinecdmadapter.so";
46 #endif 46 #endif
47 47
48 // The following strings are used to communicate supported codecs (from the
49 // component manifest) via WebPluginInfo::WebPluginMimeType's additional params.
50 const char kCdmSupportedCodecsParamName[] = "codecs";
51 const char kCdmSupportedCodecsValueDelimiter = ',';
52 const char kCdmSupportedCodecVorbis[] = "vorbis";
53 const char kCdmSupportedCodecVp8[] = "vp8";
54 #if defined(USE_PROPRIETARY_CODECS)
55 const char kCdmSupportedCodecAac[] = "aac";
56 const char kCdmSupportedCodecAvc1[] = "avc1";
57 #endif // defined(USE_PROPRIETARY_CODECS)
48 58
49 #if defined(OS_MACOSX) || defined(OS_WIN) 59 #if defined(OS_MACOSX) || defined(OS_WIN)
50 // CDM is installed by the component installer instead of the Chrome installer. 60 // CDM is installed by the component installer instead of the Chrome installer.
51 #define WIDEVINE_CDM_IS_COMPONENT 61 #define WIDEVINE_CDM_IS_COMPONENT
52 #endif // defined(OS_MACOSX) || defined(OS_WIN) 62 #endif // defined(OS_MACOSX) || defined(OS_WIN)
53 #endif // defined(ENABLE_PEPPER_CDMS) 63 #endif // defined(ENABLE_PEPPER_CDMS)
54 64
55 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_ 65 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698