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 #if defined(OS_CHROMEOS) | 15 #if defined(OS_CHROMEOS) |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 const std::string& host, | 160 const std::string& host, |
161 gfx::NativeWindow parent, | 161 gfx::NativeWindow parent, |
162 const base::Closure& callback) { | 162 const base::Closure& callback) { |
163 net::CryptoModuleList modules; | 163 net::CryptoModuleList modules; |
164 modules.push_back(net::CryptoModule::CreateFromHandle( | 164 modules.push_back(net::CryptoModule::CreateFromHandle( |
165 cert->os_cert_handle()->slot)); | 165 cert->os_cert_handle()->slot)); |
166 UnlockSlotsIfNecessary(modules, reason, host, parent, callback); | 166 UnlockSlotsIfNecessary(modules, reason, host, parent, callback); |
167 } | 167 } |
168 | 168 |
169 } // namespace chrome | 169 } // namespace chrome |
OLD | NEW |