blob: d68501255f3d25cdc420b03f2380a8dd6874f4f0 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/cdm/cdm_paths.h"
#include <string>
#include "build/build_config.h"
namespace media {
// Name of the ClearKey CDM library.
const char kClearKeyCdmLibraryName[] = "clearkeycdm";
const char kClearKeyCdmBaseDirectory[] = "ClearKeyCdm";
const char kClearKeyCdmDisplayName[] = "Clear Key CDM";
const base::Token kClearKeyCdmGuid{0x3a2e0fadde4bd1b7ull,
const base::Token kClearKeyCdmDifferentGuid{0xc3914773474bdb02ull,
// As the file system was initially used by the CDM running as a pepper plugin,
// this ID is based on the pepper plugin MIME type.
const char kClearKeyCdmFileSystemId[] = "application_x-ppapi-clearkey-cdm";
// Note: This file must be in sync with cdm_paths.gni.
// TODO(xhwang): Improve how we enable platform specific path. See
#if (defined(OS_MACOSX) || defined(OS_WIN)) && \
(defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64))
// Special path used in chrome components.
const char kPlatformSpecific[] = "_platform_specific";
// Name of the component platform in the manifest.
const char kComponentPlatform[] =
#if defined(OS_MACOSX)
#elif defined(OS_WIN)
#elif defined(OS_CHROMEOS)
#elif defined(OS_LINUX)
// Name of the component architecture in the manifest.
const char kComponentArch[] =
#if defined(ARCH_CPU_X86)
#elif defined(ARCH_CPU_X86_64)
#elif defined(ARCH_CPU_ARMEL)
base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path) {
base::FilePath path;
const std::string kPlatformArch =
std::string(kComponentPlatform) + "_" + kComponentArch;
return path.AppendASCII(cdm_base_path)
base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path) {
return base::FilePath();
} // namespace media