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

Unified Diff: media/cdm/ppapi/supported_cdm_versions.h

Issue 1402413005: Rename cdm_adapter to ppapi_cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename flag Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.gni ('k') | media/cdm/supported_cdm_versions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/supported_cdm_versions.h
diff --git a/media/cdm/ppapi/supported_cdm_versions.h b/media/cdm/ppapi/supported_cdm_versions.h
deleted file mode 100644
index 440df429281ff3016464722e968c25ca3406796f..0000000000000000000000000000000000000000
--- a/media/cdm/ppapi/supported_cdm_versions.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef MEDIA_CDM_PPAPI_SUPPORTED_CDM_VERSIONS_H_
-#define MEDIA_CDM_PPAPI_SUPPORTED_CDM_VERSIONS_H_
-
-#include "media/cdm/api/content_decryption_module.h"
-
-namespace media {
-
-bool IsSupportedCdmModuleVersion(int version) {
- switch (version) {
- // Latest.
- case CDM_MODULE_VERSION:
- return true;
- default:
- return false;
- }
-}
-
-bool IsSupportedCdmInterfaceVersion(int version) {
- static_assert(cdm::ContentDecryptionModule::kVersion ==
- cdm::ContentDecryptionModule_8::kVersion,
- "update the code below");
- switch(version) {
- // Supported versions in decreasing order.
- case cdm::ContentDecryptionModule_8::kVersion:
- case cdm::ContentDecryptionModule_7::kVersion:
- return true;
- default:
- return false;
- }
-}
-
-bool IsSupportedCdmHostVersion(int version) {
- static_assert(cdm::ContentDecryptionModule::Host::kVersion ==
- cdm::ContentDecryptionModule_8::Host::kVersion,
- "update the code below");
- switch(version) {
- // Supported versions in decreasing order.
- case cdm::Host_8::kVersion:
- case cdm::Host_7::kVersion:
- return true;
- default:
- return false;
- }
-}
-
-} // namespace media
-
-#endif // MEDIA_CDM_PPAPI_SUPPORTED_CDM_VERSIONS_H_
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.gni ('k') | media/cdm/supported_cdm_versions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698