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

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: WebData 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
« no previous file with comments | « public/platform/WebContentDecryptionModuleSession.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
OLDNEW
« no previous file with comments | « public/platform/WebContentDecryptionModuleSession.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698