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

Side by Side Diff: net/base/keygen_handler.cc

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanups, add test for chrome keygen class Created 7 years, 3 months 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) 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 namespace net { 7 namespace net {
8 8
9 // The constructor and destructor must be defined in a .cc file so that
10 // CryptoModuleBlockingPasswordDelegate can be forward-declared on platforms
11 // which use NSS.
12
13 KeygenHandler::KeygenHandler(int key_size_in_bits, 9 KeygenHandler::KeygenHandler(int key_size_in_bits,
14 const std::string& challenge, 10 const std::string& challenge,
15 const GURL& url) 11 const GURL& url)
16 : key_size_in_bits_(key_size_in_bits), 12 : key_size_in_bits_(key_size_in_bits),
17 challenge_(challenge), 13 challenge_(challenge),
18 url_(url), 14 url_(url),
19 stores_key_(true) { 15 stores_key_(true) {
20 } 16 }
21 17
22 KeygenHandler::~KeygenHandler() { 18 KeygenHandler::~KeygenHandler() {
23 } 19 }
24 20
25 } // namespace net 21 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698