OLD | NEW |
---|---|
1 // Copyright (c) 2011 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_NSS_H_ | |
6 #define CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_NSS_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/callback_forward.h" | |
12 #include "base/memory/ref_counted.h" | |
5 #include "chrome/browser/ui/crypto_module_password_dialog.h" | 13 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
14 #include "ui/gfx/native_widget_types.h" | |
6 | 15 |
7 #include "base/logging.h" | 16 namespace net { |
17 class CryptoModule; | |
18 typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList; | |
19 class X509Certificate; | |
20 } | |
8 | 21 |
9 namespace chrome { | 22 namespace chrome { |
10 | 23 |
24 // Asynchronously unlock |modules|, if necessary. |callback| is called when | |
25 // done (regardless if any modules were successfully unlocked or not). Should | |
26 // only be called on UI thread. | |
Ryan Sleevi
2013/12/05 00:23:19
comment nit: Single spaces follow periods, not dou
mattm
2013/12/05 04:41:25
Done.
| |
11 void UnlockSlotsIfNecessary(const net::CryptoModuleList& modules, | 27 void UnlockSlotsIfNecessary(const net::CryptoModuleList& modules, |
12 CryptoModulePasswordReason reason, | 28 CryptoModulePasswordReason reason, |
13 const std::string& host, | 29 const std::string& server, |
Ryan Sleevi
2013/12/05 00:23:19
I didn't follow your comment. Are you saying diffe
mattm
2013/12/05 04:41:25
yeah, basically. (I don't recall if it was through
| |
14 gfx::NativeWindow parent, | 30 gfx::NativeWindow parent, |
15 const base::Closure& callback) { | 31 const base::Closure& callback); |
16 // TODO(bulach): implement me. | |
17 NOTREACHED(); | |
18 } | |
19 | 32 |
33 // Asynchronously unlock the |cert|'s module, if necessary. |callback| is | |
34 // called when done (regardless if module was successfully unlocked or not). | |
35 // Should only be called on UI thread. | |
20 void UnlockCertSlotIfNecessary(net::X509Certificate* cert, | 36 void UnlockCertSlotIfNecessary(net::X509Certificate* cert, |
21 CryptoModulePasswordReason reason, | 37 CryptoModulePasswordReason reason, |
22 const std::string& host, | 38 const std::string& server, |
23 gfx::NativeWindow parent, | 39 gfx::NativeWindow parent, |
24 const base::Closure& callback) { | 40 const base::Closure& callback); |
25 // TODO(bulach): implement me. | |
26 NOTREACHED(); | |
27 } | |
28 | 41 |
29 } // namespace chrome | 42 } // namespace chrome |
43 | |
44 #endif // CHROME_BROWSER_UI_CRYPTO_MODULE_PASSWORD_DIALOG_NSS_H_ | |
OLD | NEW |