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

Side by Side Diff: chrome/browser/ui/crypto_module_password_dialog.h

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Rebased Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
6 #define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_ 6 #define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 namespace chrome { 13 namespace chrome {
14 14
15 // An enum to describe the reason for the password request. 15 // An enum to describe the reason for the password request.
16 enum CryptoModulePasswordReason { 16 enum CryptoModulePasswordReason {
17 kCryptoModulePasswordKeygen,
18 kCryptoModulePasswordCertEnrollment, 17 kCryptoModulePasswordCertEnrollment,
19 kCryptoModulePasswordClientAuth, 18 kCryptoModulePasswordClientAuth,
20 kCryptoModulePasswordListCerts, 19 kCryptoModulePasswordListCerts,
21 kCryptoModulePasswordCertImport, 20 kCryptoModulePasswordCertImport,
22 kCryptoModulePasswordCertExport, 21 kCryptoModulePasswordCertExport,
23 }; 22 };
24 23
25 typedef base::Callback<void(const std::string&)> CryptoModulePasswordCallback; 24 typedef base::Callback<void(const std::string&)> CryptoModulePasswordCallback;
26 25
27 // Display a dialog, prompting the user to authenticate to unlock 26 // Display a dialog, prompting the user to authenticate to unlock
28 // |module|. |reason| describes the purpose of the authentication and 27 // |module|. |reason| describes the purpose of the authentication and
29 // affects the message displayed in the dialog. |hostname| is the hostname 28 // affects the message displayed in the dialog. |hostname| is the hostname
30 // of the server which requested the access. 29 // of the server which requested the access.
31 void ShowCryptoModulePasswordDialog( 30 void ShowCryptoModulePasswordDialog(
32 const std::string& module_name, 31 const std::string& module_name,
33 bool retry, 32 bool retry,
34 CryptoModulePasswordReason reason, 33 CryptoModulePasswordReason reason,
35 const std::string& hostname, 34 const std::string& hostname,
36 gfx::NativeWindow parent, 35 gfx::NativeWindow parent,
37 const CryptoModulePasswordCallback& callback); 36 const CryptoModulePasswordCallback& callback);
38 37
39 } // namespace chrome 38 } // namespace chrome
40 39
41 #endif // CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_ 40 #endif // CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698