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

Unified Diff: chrome/browser/ui/crypto_module_password_dialog_nss.h

Issue 61643007: Update keygen to use correct NSS slot on ChromeOS multiprofile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r235279 Created 7 years, 1 month 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: chrome/browser/ui/crypto_module_password_dialog_nss.h
diff --git a/chrome/browser/ui/crypto_module_password_dialog.h b/chrome/browser/ui/crypto_module_password_dialog_nss.h
similarity index 49%
copy from chrome/browser/ui/crypto_module_password_dialog.h
copy to chrome/browser/ui/crypto_module_password_dialog_nss.h
index 0f64caf4073e97d593b4123484d08cde32a1a9c3..374f0da047419792f955676b37b872bbbdbc6991 100644
--- a/chrome/browser/ui/crypto_module_password_dialog.h
+++ b/chrome/browser/ui/crypto_module_password_dialog_nss.h
@@ -2,20 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
-#define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
+#ifndef CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_NSS_H_
+#define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_NSS_H_
#include <string>
#include <vector>
-#include "base/callback.h"
+#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
+#include "chrome/browser/ui/crypto_module_password_dialog.h"
#include "ui/gfx/native_widget_types.h"
-namespace crypto {
-class CryptoModuleBlockingPasswordDelegate;
-}
-
namespace net {
class CryptoModule;
typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList;
@@ -24,36 +21,6 @@ class X509Certificate;
namespace chrome {
-// An enum to describe the reason for the password request.
-enum CryptoModulePasswordReason {
- kCryptoModulePasswordKeygen,
- kCryptoModulePasswordCertEnrollment,
- kCryptoModulePasswordClientAuth,
- kCryptoModulePasswordListCerts,
- kCryptoModulePasswordCertImport,
- kCryptoModulePasswordCertExport,
-};
-
-typedef base::Callback<void(const char*)> CryptoModulePasswordCallback;
-
-// Display a dialog, prompting the user to authenticate to unlock
-// |module|. |reason| describes the purpose of the authentication and
-// affects the message displayed in the dialog. |server| is the name
-// of the server which requested the access.
-void ShowCryptoModulePasswordDialog(
- const std::string& module_name,
- bool retry,
- CryptoModulePasswordReason reason,
- const std::string& server,
- gfx::NativeWindow parent,
- const CryptoModulePasswordCallback& callback);
-
-// Returns a CryptoModuleBlockingPasswordDelegate to open a dialog and block
-// until returning. Should only be used on a worker thread.
-crypto::CryptoModuleBlockingPasswordDelegate*
- NewCryptoModuleBlockingDialogDelegate(CryptoModulePasswordReason reason,
- const std::string& server);
-
// Asynchronously unlock |modules|, if necessary. |callback| is called when
// done (regardless if any modules were successfully unlocked or not). Should
// only be called on UI thread.
@@ -74,4 +41,4 @@ void UnlockCertSlotIfNecessary(net::X509Certificate* cert,
} // namespace chrome
-#endif // CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
+#endif // CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_NSS_H_

Powered by Google App Engine
This is Rietveld 408576698