OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef WebEncryptedMediaKeyInformation_h | |
6 #define WebEncryptedMediaKeyInformation_h | |
7 | |
8 #include "WebCommon.h" | |
9 #include "public/platform/WebData.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class BLINK_PLATFORM_EXPORT WebEncryptedMediaKeyInformation { | |
14 public: | |
15 enum class KeyStatus { | |
16 Usable, | |
17 Expired, | |
18 OutputNotAllowed, | |
19 InternalError | |
20 }; | |
21 | |
22 WebEncryptedMediaKeyInformation(); | |
23 ~WebEncryptedMediaKeyInformation(); | |
24 | |
25 WebData id() const; | |
dcheng
2015/01/20 23:15:31
I think it's OK to inline all this stuff.
| |
26 void setId(const WebData&); | |
27 | |
28 KeyStatus status() const; | |
29 void setStatus(KeyStatus); | |
30 | |
31 uint32_t systemCode() const; | |
32 void setSystemCode(uint32_t); | |
33 | |
34 private: | |
35 WebData m_id; | |
36 KeyStatus m_status; | |
37 uint32_t m_systemCode; | |
38 }; | |
39 | |
40 } // namespace blink | |
41 | |
42 #endif // WebEncryptedMediaKeyInformation_h | |
OLD | NEW |