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 #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 | |
OLD | NEW |