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

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 1690353002: media: Remove Vorbis from secure decoder list for Widevine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/widevine/cdm/widevine_cdm_common.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 (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 #include "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/crash_logging.h" 10 #include "base/debug/crash_logging.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 widevine_cdm.description = kWidevineCdmDescription + 165 widevine_cdm.description = kWidevineCdmDescription +
166 std::string(" (version: ") + 166 std::string(" (version: ") +
167 WIDEVINE_CDM_VERSION_STRING + ")"; 167 WIDEVINE_CDM_VERSION_STRING + ")";
168 widevine_cdm.version = WIDEVINE_CDM_VERSION_STRING; 168 widevine_cdm.version = WIDEVINE_CDM_VERSION_STRING;
169 content::WebPluginMimeType widevine_cdm_mime_type( 169 content::WebPluginMimeType widevine_cdm_mime_type(
170 kWidevineCdmPluginMimeType, 170 kWidevineCdmPluginMimeType,
171 kWidevineCdmPluginExtension, 171 kWidevineCdmPluginExtension,
172 kWidevineCdmPluginMimeTypeDescription); 172 kWidevineCdmPluginMimeTypeDescription);
173 173
174 // Add the supported codecs as if they came from the component manifest. 174 // Add the supported codecs as if they came from the component manifest.
175 std::vector<std::string> codecs; 175 std::vector<std::string> codecs;
ddorwin 2016/02/12 18:47:35 // This list must match the CDM that is being bund
xhwang 2016/02/12 20:37:21 Done.
176 codecs.push_back(kCdmSupportedCodecVorbis);
177 codecs.push_back(kCdmSupportedCodecVp8); 176 codecs.push_back(kCdmSupportedCodecVp8);
178 codecs.push_back(kCdmSupportedCodecVp9); 177 codecs.push_back(kCdmSupportedCodecVp9);
179 #if defined(USE_PROPRIETARY_CODECS) 178 #if defined(USE_PROPRIETARY_CODECS)
180 codecs.push_back(kCdmSupportedCodecAac); 179 codecs.push_back(kCdmSupportedCodecAac);
181 codecs.push_back(kCdmSupportedCodecAvc1); 180 codecs.push_back(kCdmSupportedCodecAvc1);
182 #endif // defined(USE_PROPRIETARY_CODECS) 181 #endif // defined(USE_PROPRIETARY_CODECS)
183 std::string codec_string = base::JoinString( 182 std::string codec_string = base::JoinString(
184 codecs, std::string(1, kCdmSupportedCodecsValueDelimiter)); 183 codecs, std::string(1, kCdmSupportedCodecsValueDelimiter));
185 widevine_cdm_mime_type.additional_param_names.push_back( 184 widevine_cdm_mime_type.additional_param_names.push_back(
186 base::ASCIIToUTF16(kCdmSupportedCodecsParamName)); 185 base::ASCIIToUTF16(kCdmSupportedCodecsParamName));
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 #endif 629 #endif
631 } 630 }
632 631
633 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() { 632 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() {
634 #if defined(ENABLE_EXTENSIONS) 633 #if defined(ENABLE_EXTENSIONS)
635 return extensions::IsIsolateExtensionsEnabled(); 634 return extensions::IsIsolateExtensionsEnabled();
636 #else 635 #else
637 return false; 636 return false;
638 #endif 637 #endif
639 } 638 }
OLDNEW
« no previous file with comments | « no previous file | third_party/widevine/cdm/widevine_cdm_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698