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

Unified Diff: net/ssl/ssl_platform_key.h

Issue 1178193002: Sign CertificateVerify messages on a background thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix net_nacl Created 5 years, 6 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: net/ssl/ssl_platform_key.h
diff --git a/net/ssl/ssl_platform_key.h b/net/ssl/ssl_platform_key.h
new file mode 100644
index 0000000000000000000000000000000000000000..76d58061b6970a7789715d70ecf9f70e9be3bbaa
--- /dev/null
+++ b/net/ssl/ssl_platform_key.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
Ryan Sleevi 2015/06/23 15:27:28 Date
davidben 2015/06/24 21:43:12 Done. (Originally originally this was a copy of op
davidben 2015/06/29 17:37:52 Updated the cc files also to 2015 since that shoul
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SSL_SSL_PLATFORM_KEY_H_
+#define NET_SSL_SSL_PLATFORM_KEY_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "net/ssl/ssl_private_key.h"
Ryan Sleevi 2015/06/23 15:27:29 Can forward declare
davidben 2015/06/24 21:43:12 Done.
+
+namespace base {
+class TaskRunner;
+}
+
+namespace net {
+
+class X509Certificate;
+
+// Looks up the private key from the platform key store corresponding
+// to |certificate|'s public key and returns an SSLPrivateKey which offloads
+// signing operations to |task_runner|.
+scoped_ptr<SSLPrivateKey> FetchClientCertPrivateKey(
+ X509Certificate* certificate,
+ const scoped_refptr<base::TaskRunner>& task_runner);
+
+} // namespace net
+
+#endif // NET_SSL_SSL_PLATFORM_KEY_H_

Powered by Google App Engine
This is Rietveld 408576698