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..bc2b9e1f8a89e096c2baeeb22a0b92d1696558da |
--- /dev/null |
+++ b/chrome/browser/net/keygen_handler.h |
@@ -0,0 +1,38 @@ |
+// 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. |
+ |
+// XXX update |
+#ifndef XXNET_BASE_KEYGEN_HANDLER_H_ |
+#define XXNET_BASE_KEYGEN_HANDLER_H_ |
+ |
+#include <string> |
+ |
+#include "base/callback.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "build/build_config.h" |
+#include "googleurl/src/gurl.h" |
+ |
+namespace content { |
+class ResourceContext; |
+} // namespace content |
+ |
+namespace chrome { |
+ |
+// This class 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 Keygen(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 |
+ |
+#endif // NET_BASE_KEYGEN_HANDLER_H_ |