1f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
2f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// found in the LICENSE file.
4f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
5f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)#ifndef MEDIA_CDM_KEY_SYSTEM_NAMES_H_
6f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)#define MEDIA_CDM_KEY_SYSTEM_NAMES_H_
7f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
8f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)#include <string>
9f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
10f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)#include "media/base/media_export.h"
11f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
12f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)namespace media {
13f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
14f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// TODO(jrummell): Change other uses of Clear Key to use this common value.
15f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
16a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// The key system name for Clear Key.
17a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)MEDIA_EXPORT extern const char kClearKey[];
18f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
19f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// The key system name for External Clear Key.
20f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)MEDIA_EXPORT extern const char kExternalClearKey[];
21f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
22f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Returns true if |key_system| is Clear Key, false otherwise.
23f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)MEDIA_EXPORT inline bool IsClearKey(const std::string& key_system) {
24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  return key_system == kClearKey;
25f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)}
26f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
27f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Returns true if |key_system| is External Clear Key, false otherwise.
28f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)MEDIA_EXPORT bool IsExternalClearKey(const std::string& key_system);
29f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
30f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)}  // namespace media
31f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
32f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)#endif  // MEDIA_CDM_KEY_SYSTEM_NAMES_H_
33