| Index: public/platform/WebEncryptedMediaKeyInformation.h
|
| diff --git a/public/platform/WebEncryptedMediaKeyInformation.h b/public/platform/WebEncryptedMediaKeyInformation.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..68a8dbf2054056e2c9ee3ebb90e0751e0343fed3
|
| --- /dev/null
|
| +++ b/public/platform/WebEncryptedMediaKeyInformation.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2015 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 WebEncryptedMediaKeyInformation_h
|
| +#define WebEncryptedMediaKeyInformation_h
|
| +
|
| +#include "WebCommon.h"
|
| +#include "WebVector.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class BLINK_PLATFORM_EXPORT WebEncryptedMediaKeyInformation {
|
| +public:
|
| + enum KeyStatus {
|
| + Usable,
|
| + Expired,
|
| + OutputNotAllowed,
|
| + InternalError
|
| + };
|
| +
|
| + WebEncryptedMediaKeyInformation();
|
| + ~WebEncryptedMediaKeyInformation();
|
| +
|
| + const WebVector<unsigned char>& id() const;
|
| + void setId(const unsigned char* id, size_t idLength);
|
| +
|
| + KeyStatus status() const;
|
| + void setStatus(KeyStatus);
|
| +
|
| + uint32_t systemCode() const;
|
| + void setSystemCode(uint32_t);
|
| +
|
| +private:
|
| + WebVector<unsigned char> m_id;
|
| + KeyStatus m_status;
|
| + uint32_t m_systemCode;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebEncryptedMediaKeyInformation_h
|
|
|