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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/keygen_handler.h
diff --git a/chrome/browser/net/keygen_handler.h b/chrome/browser/net/keygen_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..001ad9be073d4ba4022d714665be73ba314e421c
--- /dev/null
+++ b/chrome/browser/net/keygen_handler.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_NET_KEYGEN_HANDLER_H_
+#define CHROME_BROWSER_NET_KEYGEN_HANDLER_H_
+
+#include <string>
+
+#include "base/callback.h"
+#include "url/gurl.h"
+
+namespace content {
+class ResourceContext;
+} // namespace content
+
+namespace chrome_browser_net {
+
+// Handles keypair generation for generating client certificates via the
+// <keygen> tag.
+// <http://dev.w3.org/html5/spec/Overview.html#the-keygen-element>
+// <https://developer.mozilla.org/En/HTML/HTML_Extensions/KEYGEN_Tag>
+
+// TODO(mattm): ideally this should take a specific tab as the context, so that
+// it can use tab-modal dialogs.
+void GenerateKey(content::ResourceContext* context,
+ int key_size_in_bits,
+ const std::string& challenge,
+ const GURL& url,
+ bool stores_key,
+ const base::Callback<void(const std::string*)>& callback);
+
+} // namespace chrome_browser_net
+
+#endif // CHROME_BROWSER_NET_KEYGEN_HANDLER_H_
« 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