OLD | NEW |
1 // Copyright (c) 2010 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 "net/base/keygen_handler.h" | 5 #include "net/base/keygen_handler.h" |
6 | 6 |
7 #if defined(USE_NSS) | |
8 #include "base/crypto/crypto_module_blocking_password_delegate.h" | |
9 #endif | |
10 | |
11 namespace net { | 7 namespace net { |
12 | 8 |
13 // The constructor and destructor must be defined in a .cc file so that | 9 // The constructor and destructor must be defined in a .cc file so that |
14 // CryptoModuleBlockingPasswordDelegate can be forward-declared on platforms | 10 // CryptoModuleBlockingPasswordDelegate can be forward-declared on platforms |
15 // which use NSS. | 11 // which use NSS. |
16 | 12 |
17 KeygenHandler::KeygenHandler(int key_size_in_bits, | 13 KeygenHandler::KeygenHandler(int key_size_in_bits, |
18 const std::string& challenge, | 14 const std::string& challenge, |
19 const GURL& url) | 15 const GURL& url) |
20 : key_size_in_bits_(key_size_in_bits), | 16 : key_size_in_bits_(key_size_in_bits), |
21 challenge_(challenge), | 17 challenge_(challenge), |
22 url_(url), | 18 url_(url), |
23 stores_key_(true) { | 19 stores_key_(true) { |
24 } | 20 } |
25 | 21 |
26 KeygenHandler::~KeygenHandler() { | 22 KeygenHandler::~KeygenHandler() { |
27 } | 23 } |
28 | 24 |
29 } // namespace net | 25 } // namespace net |
OLD | NEW |