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

Side by Side Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 28053006: mac: Fix build with ffmpeg_branding=Chrome proprietary_codecs=1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 "chrome/renderer/media/chrome_key_systems.h" 5 #include "chrome/renderer/media/chrome_key_systems.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 18 matching lines...) Expand all
29 29
30 const char kAudioWebM[] = "audio/webm"; 30 const char kAudioWebM[] = "audio/webm";
31 const char kVideoWebM[] = "video/webm"; 31 const char kVideoWebM[] = "video/webm";
32 const char kVorbis[] = "vorbis"; 32 const char kVorbis[] = "vorbis";
33 const char kVorbisVP8[] = "vorbis,vp8,vp8.0"; 33 const char kVorbisVP8[] = "vorbis,vp8,vp8.0";
34 34
35 #if defined(USE_PROPRIETARY_CODECS) 35 #if defined(USE_PROPRIETARY_CODECS)
36 const char kAudioMp4[] = "audio/mp4"; 36 const char kAudioMp4[] = "audio/mp4";
37 const char kVideoMp4[] = "video/mp4"; 37 const char kVideoMp4[] = "video/mp4";
38 const char kMp4a[] = "mp4a"; 38 const char kMp4a[] = "mp4a";
39 #if defined(WIDEVINE_CDM_AVAILABLE)
39 const char kAvc1Avc3[] = "avc1,avc3"; 40 const char kAvc1Avc3[] = "avc1,avc3";
acolwell GONE FROM CHROMIUM 2013/10/18 21:41:18 nit: How about just moving this into the #ifdef be
Nico 2013/10/18 21:43:12 Done.
Nico 2013/10/18 21:43:12 Does that change much? Down there it'd have to be
acolwell GONE FROM CHROMIUM 2013/10/18 21:45:55 Oh right. How about just inlining this since it is
41 #endif // WIDEVINE_CDM_AVAILABLE
40 const char kMp4aAvc1Avc3[] = "mp4a,avc1,avc3"; 42 const char kMp4aAvc1Avc3[] = "mp4a,avc1,avc3";
41 #endif // defined(USE_PROPRIETARY_CODECS) 43 #endif // defined(USE_PROPRIETARY_CODECS)
42 44
43 #if defined(ENABLE_PEPPER_CDMS) 45 #if defined(ENABLE_PEPPER_CDMS)
44 static bool IsPepperCdmRegistered(const std::string& pepper_type) { 46 static bool IsPepperCdmRegistered(const std::string& pepper_type) {
45 bool is_registered = false; 47 bool is_registered = false;
46 content::RenderThread::Get()->Send( 48 content::RenderThread::Get()->Send(
47 new ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType( 49 new ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType(
48 pepper_type, &is_registered)); 50 pepper_type, &is_registered));
49 51
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 252
251 #if defined(WIDEVINE_CDM_AVAILABLE) 253 #if defined(WIDEVINE_CDM_AVAILABLE)
252 #if defined(ENABLE_PEPPER_CDMS) 254 #if defined(ENABLE_PEPPER_CDMS)
253 AddPepperBasedWidevine(key_systems_info); 255 AddPepperBasedWidevine(key_systems_info);
254 #elif defined(OS_ANDROID) 256 #elif defined(OS_ANDROID)
255 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableMediaDrm)) 257 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableMediaDrm))
256 AddAndroidWidevine(key_systems_info); 258 AddAndroidWidevine(key_systems_info);
257 #endif 259 #endif
258 #endif 260 #endif
259 } 261 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698