| Index: base/android/jni_unguessable_token.h
|
| diff --git a/base/android/jni_unguessable_token.h b/base/android/jni_unguessable_token.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f269888f8a6d7e6d9bf1db0f31683d0f0eceacd1
|
| --- /dev/null
|
| +++ b/base/android/jni_unguessable_token.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 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 BASE_ANDROID_JNI_UNGUESSABLE_TOKEN_H_
|
| +#define BASE_ANDROID_JNI_UNGUESSABLE_TOKEN_H_
|
| +
|
| +#include <jni.h>
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/base_export.h"
|
| +#include "base/unguessable_token.h"
|
| +
|
| +namespace base {
|
| +namespace android {
|
| +
|
| +// Create a java UnguessableToken with the same value as |token|.
|
| +BASE_EXPORT ScopedJavaLocalRef<jobject> CreateJavaUnguessableToken(
|
| + JNIEnv* env,
|
| + const base::UnguessableToken& token);
|
| +
|
| +// Create a native UnguessableToken from |token|.
|
| +BASE_EXPORT base::UnguessableToken ConvertFromJavaUnguessableToken(
|
| + JNIEnv* env,
|
| + const JavaRef<jobject>& token);
|
| +
|
| +} // namespace android
|
| +} // namespace base
|
| +
|
| +#endif // BASE_ANDROID_JNI_UNGUESSABLE_TOKEN_H_
|
|
|