Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
svaldez
2016/09/01 14:51:05
Update
davidben
2016/09/01 19:40:56
Done.
| |
| 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 NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ | |
| 6 #define NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "net/base/net_export.h" | |
| 12 | |
| 13 namespace net { | |
| 14 | |
| 15 class SSLPrivateKey; | |
| 16 | |
| 17 // Returns a new SSLPrivateKey which uses |key| for signing operations or | |
| 18 // nullptr on error. |key| must be a java.security.PrivateKey object. | |
| 19 NET_EXPORT scoped_refptr<SSLPrivateKey> WrapJavaPrivateKey(jobject key); | |
| 20 | |
| 21 } // namespace net | |
| 22 | |
| 23 #endif // NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_ | |
| OLD | NEW |