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

Side by Side Diff: chrome/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: cert manager basics working 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 CHROME_BROWSER_NET_KEYGEN_HANDLER_H_
6 #define CHROME_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 class ResourceContext;
15 } // namespace content
16
17 namespace chrome_browser_net {
18
19 // Handles keypair generation for generating client certificates via the
20 // <keygen> tag.
21 // <http://dev.w3.org/html5/spec/Overview.html#the-keygen-element>
22 // <https://developer.mozilla.org/En/HTML/HTML_Extensions/KEYGEN_Tag>
23
24 // TODO(mattm): ideally this should take a specific tab as the context, so that
25 // it can use tab-modal dialogs.
26 void GenerateKey(content::ResourceContext* context,
27 int key_size_in_bits,
28 const std::string& challenge,
29 const GURL& url,
30 bool stores_key,
31 const base::Callback<void(const std::string*)>& callback);
32
33 } // namespace chrome_browser_net
34
35 #endif // CHROME_BROWSER_NET_KEYGEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/net/profile_cert_filter.cc ('k') | chrome/browser/net/keygen_handler_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698