Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebEncryptedMediaKeyInformation.h
blob34ee05b912d1ffe1c69b5e841dec6f767aa8be22
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebEncryptedMediaKeyInformation_h
6 #define WebEncryptedMediaKeyInformation_h
8 #include "WebCommon.h"
9 #include "public/platform/WebData.h"
11 namespace blink {
13 class BLINK_PLATFORM_EXPORT WebEncryptedMediaKeyInformation {
14 public:
15 enum class KeyStatus {
16 Usable,
17 Expired,
18 Released,
19 OutputRestricted,
20 OutputDownscaled,
21 StatusPending,
22 InternalError
25 WebEncryptedMediaKeyInformation();
26 ~WebEncryptedMediaKeyInformation();
28 WebData id() const;
29 void setId(const WebData&);
31 KeyStatus status() const;
32 void setStatus(KeyStatus);
34 uint32_t systemCode() const;
35 void setSystemCode(uint32_t);
37 private:
38 WebData m_id;
39 KeyStatus m_status;
40 uint32_t m_systemCode;
43 } // namespace blink
45 #endif // WebEncryptedMediaKeyInformation_h