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

Unified Diff: net/base/crypto_module_nss.cc

Issue 2724013002: net: remove CryptoModule class (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « net/base/crypto_module.h ('k') | net/base/crypto_module_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/crypto_module_nss.cc
diff --git a/net/base/crypto_module_nss.cc b/net/base/crypto_module_nss.cc
deleted file mode 100644
index df52ae9cb4f3afd3b50fc2ead1941711784992c7..0000000000000000000000000000000000000000
--- a/net/base/crypto_module_nss.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2010 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 "net/base/crypto_module.h"
-
-#include <pk11pub.h>
-
-namespace net {
-
-std::string CryptoModule::GetTokenName() const {
- return PK11_GetTokenName(module_handle_);
-}
-
-// static
-CryptoModule* CryptoModule::CreateFromHandle(OSModuleHandle handle) {
- return new CryptoModule(handle);
-}
-
-CryptoModule::CryptoModule(OSModuleHandle handle) : module_handle_(handle) {
- PK11_ReferenceSlot(module_handle_);
-}
-
-CryptoModule::~CryptoModule() {
- PK11_FreeSlot(module_handle_);
-}
-
-} // namespace net
« no previous file with comments | « net/base/crypto_module.h ('k') | net/base/crypto_module_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698