| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/cdm/cdm_paths.h" | 5 #include "media/cdm/cdm_paths.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 namespace media { | 11 namespace media { |
| 12 | 12 |
| 13 // Name of the ClearKey CDM library. | 13 // Name of the ClearKey CDM library. |
| 14 const char kClearKeyCdmLibraryName[] = "clearkeycdm"; | 14 const char kClearKeyCdmLibraryName[] = "clearkeycdm"; |
| 15 | 15 |
| 16 // Note: This file must be in sync with cdm_paths.{gypi|gni} | 16 // Note: This file must be in sync with cdm_paths.gni. |
| 17 // TODO(xhwang): Improve how we enable platform specific path. See | 17 // TODO(xhwang): Improve how we enable platform specific path. See |
| 18 // http://crbug.com/468584 | 18 // http://crbug.com/468584 |
| 19 #if (defined(OS_MACOSX) || defined(OS_WIN)) && \ | 19 #if (defined(OS_MACOSX) || defined(OS_WIN)) && \ |
| 20 (defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)) | 20 (defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)) |
| 21 #define CDM_USE_PLATFORM_SPECIFIC_PATH | 21 #define CDM_USE_PLATFORM_SPECIFIC_PATH |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #if defined(CDM_USE_PLATFORM_SPECIFIC_PATH) | 24 #if defined(CDM_USE_PLATFORM_SPECIFIC_PATH) |
| 25 | 25 |
| 26 // Special path used in chrome components. | 26 // Special path used in chrome components. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 #else // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) | 64 #else // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) |
| 65 | 65 |
| 66 base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path) { | 66 base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path) { |
| 67 return base::FilePath(); | 67 return base::FilePath(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 #endif // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) | 70 #endif // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) |
| 71 | 71 |
| 72 } // namespace media | 72 } // namespace media |
| OLD | NEW |