OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/crypto_module_password_dialog.h" | 5 #include "chrome/browser/ui/crypto_module_password_dialog_nss.h" |
6 | 6 |
7 #include <pk11pub.h> | 7 #include <pk11pub.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "net/base/crypto_module.h" | 12 #include "net/base/crypto_module.h" |
13 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
14 | 14 |
15 using content::BrowserThread; | 15 using content::BrowserThread; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 const std::string& host, | 142 const std::string& host, |
143 gfx::NativeWindow parent, | 143 gfx::NativeWindow parent, |
144 const base::Closure& callback) { | 144 const base::Closure& callback) { |
145 net::CryptoModuleList modules; | 145 net::CryptoModuleList modules; |
146 modules.push_back(net::CryptoModule::CreateFromHandle( | 146 modules.push_back(net::CryptoModule::CreateFromHandle( |
147 cert->os_cert_handle()->slot)); | 147 cert->os_cert_handle()->slot)); |
148 UnlockSlotsIfNecessary(modules, reason, host, parent, callback); | 148 UnlockSlotsIfNecessary(modules, reason, host, parent, callback); |
149 } | 149 } |
150 | 150 |
151 } // namespace chrome | 151 } // namespace chrome |
OLD | NEW |