[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / components / ownership / owner_key_util.cc
1 // Copyright 2014 The Chromium Authors
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 "components/ownership/owner_key_util.h"
6
7 #include <utility>
8
9 namespace ownership {
10
11 ///////////////////////////////////////////////////////////////////////////
12 // PublicKey
13
14 PublicKey::PublicKey(bool is_persisted, std::vector<uint8_t> data)
15     : is_persisted_(is_persisted), data_(std::move(data)) {}
16
17 PublicKey::~PublicKey() = default;
18
19 scoped_refptr<PublicKey> PublicKey::clone() {
20   return base::MakeRefCounted<ownership::PublicKey>(is_persisted_, data_);
21 }
22
23 ///////////////////////////////////////////////////////////////////////////
24 // PrivateKey
25
26 PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key)
27     : key_(std::move(key)) {}
28
29 PrivateKey::~PrivateKey() = default;
30
31 }  // namespace ownership