OLD | NEW |
(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_ |
OLD | NEW |