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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 254983006: Fix: Adding list of supported codecs for MP4 containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing extended codecs tests Created 6 years, 7 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
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 "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 } 431 }
432 432
433 // Check list of strict codecs to see if it is supported. 433 // Check list of strict codecs to see if it is supported.
434 if (net::IsStrictMediaMimeType(mime_type_ascii)) { 434 if (net::IsStrictMediaMimeType(mime_type_ascii)) {
435 // Check if the codecs are a perfect match. 435 // Check if the codecs are a perfect match.
436 std::vector<std::string> strict_codecs; 436 std::vector<std::string> strict_codecs;
437 net::ParseCodecString(ToASCIIOrEmpty(codecs), &strict_codecs, false); 437 net::ParseCodecString(ToASCIIOrEmpty(codecs), &strict_codecs, false);
438 if (net::IsSupportedStrictMediaMimeType(mime_type_ascii, strict_codecs)) 438 if (net::IsSupportedStrictMediaMimeType(mime_type_ascii, strict_codecs))
439 return IsSupported; 439 return IsSupported;
440 440
441 // Codecs required by MP4 and HLS mime types have a profile paramter in them
442 // Since we do not check the exact profile version supported by the system,
443 // we only return a "maybe" if the codecs are RFC6381 compliant.
444 if (net::IsSupportedStrictMP4OrHLSMediaMimeType(mime_type_ascii,
acolwell GONE FROM CHROMIUM 2014/05/12 14:54:18 I don't think MP4OrHLS should be in the method nam
amogh.bihani 2014/05/15 09:05:53 Done.
445 strict_codecs)) {
446 return MayBeSupported;
447 }
448
441 // We support the container, but no codecs were specified. 449 // We support the container, but no codecs were specified.
442 if (codecs.isNull()) 450 if (codecs.isNull())
443 return MayBeSupported; 451 return MayBeSupported;
444 452
445 return IsNotSupported; 453 return IsNotSupported;
446 } 454 }
447 455
448 // If we don't recognize the codec, it's possible we support it. 456 // If we don't recognize the codec, it's possible we support it.
449 std::vector<std::string> parsed_codecs; 457 std::vector<std::string> parsed_codecs;
450 net::ParseCodecString(ToASCIIOrEmpty(codecs), &parsed_codecs, true); 458 net::ParseCodecString(ToASCIIOrEmpty(codecs), &parsed_codecs, true);
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 return; 1179 return;
1172 QuotaDispatcher::ThreadSpecificInstance( 1180 QuotaDispatcher::ThreadSpecificInstance(
1173 thread_safe_sender_.get(), 1181 thread_safe_sender_.get(),
1174 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1182 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1175 storage_partition, 1183 storage_partition,
1176 static_cast<quota::StorageType>(type), 1184 static_cast<quota::StorageType>(type),
1177 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1185 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1178 } 1186 }
1179 1187
1180 } // namespace content 1188 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698