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

Side by Side Diff: Source/platform/exported/WebEncryptedMediaKeyInformation.cpp

Issue 858693002: Add MediaKeySession.keystatuseschange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 #include "config.h"
6 #include "public/platform/WebEncryptedMediaKeyInformation.h"
7
8 namespace blink {
9
10 WebEncryptedMediaKeyInformation::WebEncryptedMediaKeyInformation()
11 {
12 }
13
14 WebEncryptedMediaKeyInformation::~WebEncryptedMediaKeyInformation()
15 {
16 }
17
18 const WebVector<unsigned char>& WebEncryptedMediaKeyInformation::id() const
19 {
20 return m_id;
21 }
22
23 void WebEncryptedMediaKeyInformation::setId(const unsigned char* id, size_t idLe ngth)
24 {
25 WebVector<unsigned char> newId(id, idLength);
ddorwin 2015/01/17 00:34:56 Is there a reason you don't use assign() instead o
jrummell 2015/01/20 19:46:34 Done.
26 m_id.swap(newId);
27 }
28
29 WebEncryptedMediaKeyInformation::KeyStatus WebEncryptedMediaKeyInformation::stat us() const
30 {
31 return m_status;
32 }
33
34 void WebEncryptedMediaKeyInformation::setStatus(KeyStatus status)
35 {
36 m_status = status;
37 }
38
39 uint32_t WebEncryptedMediaKeyInformation::systemCode() const
40 {
41 return m_systemCode;
42 }
43
44 void WebEncryptedMediaKeyInformation::setSystemCode(uint32_t systemCode)
45 {
46 m_systemCode = systemCode;
47 }
48
49 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698