OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/ownership/owner_key_util.h" | 5 #include "components/ownership/owner_key_util.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 namespace ownership { | 9 namespace ownership { |
8 | 10 |
9 /////////////////////////////////////////////////////////////////////////// | 11 /////////////////////////////////////////////////////////////////////////// |
10 // PublicKey | 12 // PublicKey |
11 | 13 |
12 PublicKey::PublicKey() { | 14 PublicKey::PublicKey() { |
13 } | 15 } |
14 | 16 |
15 PublicKey::~PublicKey() { | 17 PublicKey::~PublicKey() { |
16 } | 18 } |
17 | 19 |
18 /////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////// |
19 // PrivateKey | 21 // PrivateKey |
20 | 22 |
21 PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key) : key_(key.Pass()) { | 23 PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key) |
22 } | 24 : key_(std::move(key)) {} |
23 | 25 |
24 PrivateKey::~PrivateKey() { | 26 PrivateKey::~PrivateKey() { |
25 } | 27 } |
26 | 28 |
27 } // namespace ownership | 29 } // namespace ownership |
OLD | NEW |