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

Unified Diff: net/base/keygen_handler.cc

Issue 5686002: NSS: PKCS 11 password prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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: net/base/keygen_handler.cc
diff --git a/net/base/keygen_handler.cc b/net/base/keygen_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ecdf5296be6179a2ca99997ec438763adf7b8da2
--- /dev/null
+++ b/net/base/keygen_handler.cc
@@ -0,0 +1,28 @@
+// 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/keygen_handler.h"
+
+#if defined(USE_NSS)
+#include "base/crypto/pk11_blocking_password_delegate.h"
+#endif // defined(USE_NSS)
wtc 2010/12/15 20:54:36 Nit: I usully omit this kind of #endif comment for
mattm 2011/01/12 01:22:07 Done.
+
+namespace net {
+
+// The constructor and destructor must be defined in a .cc file so that
+// PK11PasswordCallback can be forward-declared on platforms which use NSS.
wtc 2010/12/15 20:54:36 Typo: PK11PasswordCallback => PK11BlockingPassword
mattm 2011/01/12 01:22:07 Done.
+
+KeygenHandler::KeygenHandler(int key_size_in_bits,
+ const std::string& challenge,
+ const GURL& url)
+ : key_size_in_bits_(key_size_in_bits),
+ challenge_(challenge),
+ url_(url),
+ stores_key_(true) {
+}
+
+KeygenHandler::~KeygenHandler() {
+}
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698