blob: 9782a2d5e03898b5452ae0c23d167cb78dd95f54 [file] [log] [blame]
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +00001// Copyright 2014 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 NET_ANDROID_ANDROID_PRIVATE_KEY_H
6#define NET_ANDROID_ANDROID_PRIVATE_KEY_H
7
8#include <jni.h>
9
10#include "base/android/scoped_java_ref.h"
11#include "base/basictypes.h"
12#include "net/base/net_export.h"
13
14
15namespace net {
16namespace android {
17
18// Returns the KeyStore associated with a given AndroidPrivateKey
19NET_EXPORT base::android::ScopedJavaLocalRef<jobject> GetKeyStore(
20 jobject private_key);
21
22// Register JNI methods
23NET_EXPORT bool RegisterAndroidPrivateKey(JNIEnv* env);
24
25} // namespace android
26} // namespace net
27
28#endif // NET_ANDROID_ANDROID_PRIVATE_KEY_H