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

Side by Side Diff: components/ownership/owner_key_util.cc

Issue 494093002: OwnerKeyUtil is moved to components/ownership. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added public static OwnerSettingsService::MakeOwnerKeyUtil() method. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/ownership/owner_key_util.h"
6
7 #include <limits>
8
9 #include "base/file_util.h"
10 #include "base/files/file_path.h"
11 #include "base/logging.h"
12 #include "base/sys_info.h"
13 #include "components/ownership/owner_key_util_impl.h"
14 #include "crypto/rsa_private_key.h"
15
16 namespace ownership {
17
18 ///////////////////////////////////////////////////////////////////////////
19 // PublicKey
20
21 PublicKey::PublicKey() {
22 }
23
24 PublicKey::~PublicKey() {
25 }
26
27 ///////////////////////////////////////////////////////////////////////////
28 // PrivateKey
29
30 PrivateKey::PrivateKey(crypto::RSAPrivateKey* key) : key_(key) {
31 }
32
33 PrivateKey::~PrivateKey() {
34 }
35
36 ///////////////////////////////////////////////////////////////////////////
37 // OwnerKeyUtil
38
39 scoped_refptr<OwnerKeyUtil> OwnerKeyUtil::Create(
40 const base::FilePath& public_key_path) {
41 return new OwnerKeyUtilImpl(public_key_path);
42 }
43
44 OwnerKeyUtil::OwnerKeyUtil() {
45 }
46
47 OwnerKeyUtil::~OwnerKeyUtil() {
48 }
49
50 } // namespace ownership
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698