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

Side by Side 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: jam review changes Created 7 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 | Annotate | Revision Log
OLDNEW
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.
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,
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/crypto_module_password_dialog.cc ('k') | chrome/browser/ui/crypto_module_password_dialog_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698