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

Unified Diff: net/android/android_private_key.h

Issue 166143002: Refactoring AndroidKeyStore to support a KeyStore running in another process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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/android/android_private_key.h
diff --git a/net/android/android_private_key.h b/net/android/android_private_key.h
new file mode 100644
index 0000000000000000000000000000000000000000..9782a2d5e03898b5452ae0c23d167cb78dd95f54
--- /dev/null
+++ b/net/android/android_private_key.h
@@ -0,0 +1,28 @@
+// Copyright 2014 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 NET_ANDROID_ANDROID_PRIVATE_KEY_H
+#define NET_ANDROID_ANDROID_PRIVATE_KEY_H
+
+#include <jni.h>
+
+#include "base/android/scoped_java_ref.h"
+#include "base/basictypes.h"
+#include "net/base/net_export.h"
+
+
+namespace net {
+namespace android {
+
+// Returns the KeyStore associated with a given AndroidPrivateKey
+NET_EXPORT base::android::ScopedJavaLocalRef<jobject> GetKeyStore(
+ jobject private_key);
+
+// Register JNI methods
+NET_EXPORT bool RegisterAndroidPrivateKey(JNIEnv* env);
+
+} // namespace android
+} // namespace net
+
+#endif // NET_ANDROID_ANDROID_PRIVATE_KEY_H

Powered by Google App Engine
This is Rietveld 408576698