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

Unified Diff: net/android/android_private_key.cc

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.cc
diff --git a/net/android/android_private_key.cc b/net/android/android_private_key.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8f56085ad7ca37b30c2935db8110590f464048b9
--- /dev/null
+++ b/net/android/android_private_key.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "net/android/android_private_key.h"
+
+#include <vector>
+#include "jni/AndroidPrivateKey_jni.h"
+
+namespace net {
+namespace android {
+
+base::android::ScopedJavaLocalRef<jobject> GetKeyStore(
+ jobject private_key_ref) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_AndroidPrivateKey_getKeyStore(
+ env, private_key_ref);
+}
+
+bool RegisterAndroidPrivateKey(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+} // namespace android
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698