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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/ownership/owner_key_util.cc
diff --git a/components/ownership/owner_key_util.cc b/components/ownership/owner_key_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7c16c75de1b5f613448c8e2d11ad04aaaeec198f
--- /dev/null
+++ b/components/ownership/owner_key_util.cc
@@ -0,0 +1,50 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/ownership/owner_key_util.h"
+
+#include <limits>
+
+#include "base/file_util.h"
+#include "base/files/file_path.h"
+#include "base/logging.h"
+#include "base/sys_info.h"
+#include "components/ownership/owner_key_util_impl.h"
+#include "crypto/rsa_private_key.h"
+
+namespace ownership {
+
+///////////////////////////////////////////////////////////////////////////
+// PublicKey
+
+PublicKey::PublicKey() {
+}
+
+PublicKey::~PublicKey() {
+}
+
+///////////////////////////////////////////////////////////////////////////
+// PrivateKey
+
+PrivateKey::PrivateKey(crypto::RSAPrivateKey* key) : key_(key) {
+}
+
+PrivateKey::~PrivateKey() {
+}
+
+///////////////////////////////////////////////////////////////////////////
+// OwnerKeyUtil
+
+scoped_refptr<OwnerKeyUtil> OwnerKeyUtil::Create(
+ const base::FilePath& public_key_path) {
+ return new OwnerKeyUtilImpl(public_key_path);
+}
+
+OwnerKeyUtil::OwnerKeyUtil() {
+}
+
+OwnerKeyUtil::~OwnerKeyUtil() {
+}
+
+} // namespace ownership

Powered by Google App Engine
This is Rietveld 408576698