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

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

Issue 1921823003: media: Move key_system_names to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « media/base/key_system_names.cc ('k') | media/blink/webcontentdecryptionmodulesession_impl.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/key_systems.h" 5 #include "media/base/key_systems.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "media/base/key_system_info.h" 19 #include "media/base/key_system_info.h"
20 #include "media/base/key_system_names.h"
20 #include "media/base/key_system_properties.h" 21 #include "media/base/key_system_properties.h"
21 #include "media/base/media.h" 22 #include "media/base/media.h"
22 #include "media/base/media_client.h" 23 #include "media/base/media_client.h"
23 #include "media/cdm/key_system_names.h"
24 #include "media/media_features.h" 24 #include "media/media_features.h"
25 #include "third_party/widevine/cdm/widevine_cdm_common.h" 25 #include "third_party/widevine/cdm/widevine_cdm_common.h"
26 26
27 namespace media { 27 namespace media {
28 28
29 const char kClearKeyKeySystem[] = "org.w3.clearkey"; 29 const char kClearKeyKeySystem[] = "org.w3.clearkey";
ddorwin 2016/04/25 23:25:57 We already include a file that defines kClearKey.
jrummell 2016/04/26 00:27:24 Done.
30 30
31 // These names are used by UMA. Do not change them! 31 // These names are used by UMA. Do not change them!
32 const char kClearKeyKeySystemNameForUMA[] = "ClearKey"; 32 const char kClearKeyKeySystemNameForUMA[] = "ClearKey";
33 const char kUnknownKeySystemNameForUMA[] = "Unknown"; 33 const char kUnknownKeySystemNameForUMA[] = "Unknown";
34 34
35 struct NamedCodec { 35 struct NamedCodec {
36 const char* name; 36 const char* name;
37 EmeCodec type; 37 EmeCodec type;
38 }; 38 };
39 39
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 uint32_t mask) { 857 uint32_t mask) {
858 KeySystemsImpl::GetInstance()->AddCodecMask(media_type, codec, mask); 858 KeySystemsImpl::GetInstance()->AddCodecMask(media_type, codec, mask);
859 } 859 }
860 860
861 MEDIA_EXPORT void AddMimeTypeCodecMask(const std::string& mime_type, 861 MEDIA_EXPORT void AddMimeTypeCodecMask(const std::string& mime_type,
862 uint32_t mask) { 862 uint32_t mask) {
863 KeySystemsImpl::GetInstance()->AddMimeTypeCodecMask(mime_type, mask); 863 KeySystemsImpl::GetInstance()->AddMimeTypeCodecMask(mime_type, mask);
864 } 864 }
865 865
866 } // namespace media 866 } // namespace media
OLDNEW
« no previous file with comments | « media/base/key_system_names.cc ('k') | media/blink/webcontentdecryptionmodulesession_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698