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

Side by Side Diff: components/cdm/renderer/widevine_key_systems.cc

Issue 772043004: Replace WIDEVINE_CDM_AVAILABLE with a gyp define 'enable_widevine_cdm'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix #endif Created 6 years 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 | « chromecast/renderer/key_systems_cast.cc ('k') | content/renderer/media/render_media_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/cdm/renderer/widevine_key_systems.h" 5 #include "components/cdm/renderer/widevine_key_systems.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "media/base/eme_constants.h" 11 #include "media/base/eme_constants.h"
12 12
13 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 13 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
14 14
15 #if defined(WIDEVINE_CDM_AVAILABLE) 15 #if defined(ENABLE_WIDEVINE_CDM)
16 16
17 using media::KeySystemInfo; 17 using media::KeySystemInfo;
18 using media::SupportedCodecs; 18 using media::SupportedCodecs;
19 19
20 namespace cdm { 20 namespace cdm {
21 21
22 // Return |name|'s parent key system. 22 // Return |name|'s parent key system.
23 static std::string GetDirectParentName(std::string name) { 23 static std::string GetDirectParentName(std::string name) {
24 size_t last_period = name.find_last_of('.'); 24 size_t last_period = name.find_last_of('.');
25 DCHECK_GT(last_period, 0u); 25 DCHECK_GT(last_period, 0u);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 #if defined(ENABLE_PEPPER_CDMS) 63 #if defined(ENABLE_PEPPER_CDMS)
64 info.pepper_type = kWidevineCdmPluginMimeType; 64 info.pepper_type = kWidevineCdmPluginMimeType;
65 #endif // defined(ENABLE_PEPPER_CDMS) 65 #endif // defined(ENABLE_PEPPER_CDMS)
66 66
67 concrete_key_systems->push_back(info); 67 concrete_key_systems->push_back(info);
68 } 68 }
69 69
70 } // namespace cdm 70 } // namespace cdm
71 71
72 #endif // defined(WIDEVINE_CDM_AVAILABLE) 72 #endif // defined(ENABLE_WIDEVINE_CDM)
OLDNEW
« no previous file with comments | « chromecast/renderer/key_systems_cast.cc ('k') | content/renderer/media/render_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698