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

Side by Side Diff: content/common/android/resource_request_body_android.h

Issue 2038233002: Using ResourceRequestBody as the type of HTTP body outside of //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Rebasing... Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 CONTENT_BROWSER_ANDROID_RESOURCE_REQUEST_BODY_JNI_H_
6 #define CONTENT_BROWSER_ANDROID_RESOURCE_REQUEST_BODY_JNI_H_
7
8 #include <jni.h>
9
10 #include "base/android/scoped_java_ref.h"
11 #include "base/memory/ref_counted.h"
12
13 namespace content {
14
15 class ResourceRequestBodyImpl;
16
17 bool RegisterResourceRequestBody(JNIEnv* env);
18
19 // Returns an instance of org.chromium.content_public.common.ResourceRequestBody
20 // that contains serialized representation of the |native_object|.
21 base::android::ScopedJavaLocalRef<jobject>
22 ConvertResourceRequestBodyToJavaObject(
23 JNIEnv* env,
24 const scoped_refptr<ResourceRequestBodyImpl>& native_object);
25
26 // Reconstructs the native C++ content::ResourceRequestBody object based on
27 // org.chromium.content_public.common.ResourceRequestBody (|java_object|) passed
28 // in as an argument.
29 scoped_refptr<ResourceRequestBodyImpl> ExtractResourceRequestBodyFromJavaObject(
30 JNIEnv* env,
31 const base::android::JavaParamRef<jobject>& java_object);
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_ANDROID_RESOURCE_REQUEST_BODY_JNI_H_
OLDNEW
« no previous file with comments | « content/common/android/common_jni_registrar.cc ('k') | content/common/android/resource_request_body_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698