Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |