Chromium Code Reviews| 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 { | |
| 16 Usable, | |
| 17 Error, | |
|
ddorwin
2015/01/17 00:34:56
InternalError
Do you want to match the spec order
jrummell
2015/01/20 19:46:35
Done.
| |
| 18 Expired, | |
| 19 OutputNotAllowed, | |
| 20 }; | |
| 21 | |
| 22 WebEncryptedMediaKeyInformation(); | |
| 23 ~WebEncryptedMediaKeyInformation(); | |
| 24 | |
| 25 const WebVector<unsigned char>& id() const; | |
| 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 |