| Index: content/common/android/resource_request_body_android.h
|
| diff --git a/content/common/android/resource_request_body_android.h b/content/common/android/resource_request_body_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a040ff8d2c43b57d301acc65bc0784461f1ed032
|
| --- /dev/null
|
| +++ b/content/common/android/resource_request_body_android.h
|
| @@ -0,0 +1,36 @@
|
| +// 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 CONTENT_BROWSER_ANDROID_RESOURCE_REQUEST_BODY_JNI_H_
|
| +#define CONTENT_BROWSER_ANDROID_RESOURCE_REQUEST_BODY_JNI_H_
|
| +
|
| +#include <jni.h>
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "content/common/content_export.h"
|
| +
|
| +namespace content {
|
| +
|
| +class ResourceRequestBody;
|
| +
|
| +bool RegisterResourceRequestBody(JNIEnv* env);
|
| +
|
| +// Returns org.chromium.content_public.common.ResourceRequestBody that
|
| +// wraps a ref-counted pointer to the |resource_request_body|.
|
| +CONTENT_EXPORT base::android::ScopedJavaLocalRef<jobject>
|
| +ConvertResourceRequestBodyToJavaObject(
|
| + JNIEnv* env,
|
| + const scoped_refptr<ResourceRequestBody>& native_object);
|
| +
|
| +// Extracts and returns a C++ object out of
|
| +// org.chromium.content_public.common.ResourceRequestBody.
|
| +CONTENT_EXPORT scoped_refptr<ResourceRequestBody>
|
| +ExtractResourceRequestBodyFromJavaObject(
|
| + JNIEnv* env,
|
| + const base::android::JavaParamRef<jobject>& java_object);
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_ANDROID_RESOURCE_REQUEST_BODY_JNI_H_
|
|
|