Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: public/platform/WebEncryptedMediaKeyInformation.h

Issue 858693002: Add MediaKeySession.keystatuseschange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reorder params Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698