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 const char kClearKeyCdmAdapterFileName[] = |
| 17 #if defined(OS_MACOSX) |
| 18 "clearkeycdmadapter.plugin"; |
| 19 #elif defined(OS_WIN) |
| 20 "clearkeycdmadapter.dll"; |
| 21 #elif defined(OS_POSIX) |
| 22 "libclearkeycdmadapter.so"; |
| 23 #endif |
| 24 |
16 // Note: This file must be in sync with cdm_paths.gni. | 25 // Note: This file must be in sync with cdm_paths.gni. |
17 // TODO(xhwang): Improve how we enable platform specific path. See | 26 // TODO(xhwang): Improve how we enable platform specific path. See |
18 // http://crbug.com/468584 | 27 // http://crbug.com/468584 |
19 #if (defined(OS_MACOSX) || defined(OS_WIN)) && \ | 28 #if (defined(OS_MACOSX) || defined(OS_WIN)) && \ |
20 (defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)) | 29 (defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)) |
21 #define CDM_USE_PLATFORM_SPECIFIC_PATH | 30 #define CDM_USE_PLATFORM_SPECIFIC_PATH |
22 #endif | 31 #endif |
23 | 32 |
24 #if defined(CDM_USE_PLATFORM_SPECIFIC_PATH) | 33 #if defined(CDM_USE_PLATFORM_SPECIFIC_PATH) |
25 | 34 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 72 |
64 #else // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) | 73 #else // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) |
65 | 74 |
66 base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path) { | 75 base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path) { |
67 return base::FilePath(); | 76 return base::FilePath(); |
68 } | 77 } |
69 | 78 |
70 #endif // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) | 79 #endif // defined(CDM_USE_PLATFORM_SPECIFIC_PATH) |
71 | 80 |
72 } // namespace media | 81 } // namespace media |
OLD | NEW |