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 "WebVector.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class BLINK_PLATFORM_EXPORT WebEncryptedMediaKeyInformation { | |
14 public: | |
15 enum KeyStatus { | |
dcheng
2015/01/20 22:11:49
enum class? =)
jrummell
2015/01/20 23:03:10
Done.
| |
16 Usable, | |
17 Expired, | |
18 OutputNotAllowed, | |
19 InternalError | |
20 }; | |
21 | |
22 WebEncryptedMediaKeyInformation(); | |
23 ~WebEncryptedMediaKeyInformation(); | |
24 | |
25 const WebVector<unsigned char>& id() const; | |
dcheng
2015/01/20 22:11:49
WebData?
jrummell
2015/01/20 23:03:10
Done.
| |
26 void setId(const unsigned char* id, size_t idLength); | |
27 | |
28 KeyStatus status() const; | |
29 void setStatus(KeyStatus); | |
30 | |
31 uint32_t systemCode() const; | |
32 void setSystemCode(uint32_t); | |
33 | |
34 private: | |
35 WebVector<unsigned char> m_id; | |
36 KeyStatus m_status; | |
37 uint32_t m_systemCode; | |
38 }; | |
39 | |
40 } // namespace blink | |
41 | |
42 #endif // WebEncryptedMediaKeyInformation_h | |
OLD | NEW |