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

Side by Side Diff: content/browser/net/keygen_handler.h

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: certdb: handle GetCertTrust and IsUntrusted, failed attempt to handle SetCertTrust Created 7 years, 1 month 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_NET_KEYGEN_HANDLER_H_
6 #define CONTENT_BROWSER_NET_KEYGEN_HANDLER_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 class ResourceContext;
16
17 // Handles keypair generation for generating client certificates via the
18 // <keygen> tag.
19 // <http://dev.w3.org/html5/spec/Overview.html#the-keygen-element>
20 // <https://developer.mozilla.org/En/HTML/HTML_Extensions/KEYGEN_Tag>
21
22 // TODO(mattm): ideally this should take a specific tab as the context, so that
23 // it can use tab-modal dialogs.
24 void GenerateKey(ResourceContext* context,
25 int key_size_in_bits,
26 const std::string& challenge,
27 const GURL& url,
28 const base::Callback<void(const std::string&)>& callback);
29
30 } // namespace content
31
32 #endif // CONTENT_BROWSER_NET_KEYGEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp ('k') | content/browser/net/keygen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698