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

Side by Side Diff: media/base/mime_util.cc

Issue 2700893003: Various MimeUtil cleanups. (Closed)
Patch Set: Fix default codecs return 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "media/base/mime_util.h" 5 #include "media/base/mime_util.h"
6 6
7 #include "media/base/mime_util_internal.h" 7 #include "media/base/mime_util_internal.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 11 matching lines...) Expand all
22 const std::vector<std::string>& codecs) { 22 const std::vector<std::string>& codecs) {
23 return GetMimeUtil()->IsSupportedMediaFormat(mime_type, codecs, false); 23 return GetMimeUtil()->IsSupportedMediaFormat(mime_type, codecs, false);
24 } 24 }
25 25
26 SupportsType IsSupportedEncryptedMediaFormat( 26 SupportsType IsSupportedEncryptedMediaFormat(
27 const std::string& mime_type, 27 const std::string& mime_type,
28 const std::vector<std::string>& codecs) { 28 const std::vector<std::string>& codecs) {
29 return GetMimeUtil()->IsSupportedMediaFormat(mime_type, codecs, true); 29 return GetMimeUtil()->IsSupportedMediaFormat(mime_type, codecs, true);
30 } 30 }
31 31
32 void ParseCodecString(const std::string& codecs, 32 void SplitCodecsToVector(const std::string& codecs,
33 std::vector<std::string>* codecs_out, 33 std::vector<std::string>* codecs_out,
34 bool strip) { 34 bool strip) {
35 GetMimeUtil()->ParseCodecString(codecs, codecs_out, strip); 35 GetMimeUtil()->SplitCodecsToVector(codecs, codecs_out, strip);
36 } 36 }
37 37
38 void RemoveProprietaryMediaTypesAndCodecsForTests() { 38 void RemoveProprietaryMediaTypesAndCodecsForTests() {
39 GetMimeUtil()->RemoveProprietaryMediaTypesAndCodecs(); 39 GetMimeUtil()->RemoveProprietaryMediaTypesAndCodecs();
40 } 40 }
41 41
42 } // namespace media 42 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698