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

Unified Diff: content/common/android/resource_request_body_android.cc

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/android/resource_request_body_android.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/resource_request_body_android.cc
diff --git a/content/common/android/resource_request_body_android.cc b/content/common/android/resource_request_body_android.cc
index 7abf4e8ceeba8787f4e0966563ed98c4a0d57b0a..08e747a38da1d96fbd1e7bde9e979a94b8ca5f9a 100644
--- a/content/common/android/resource_request_body_android.cc
+++ b/content/common/android/resource_request_body_android.cc
@@ -23,7 +23,7 @@ namespace {
base::android::ScopedJavaLocalRef<jbyteArray>
ConvertResourceRequestBodyToJavaArray(JNIEnv* env,
- const ResourceRequestBodyImpl& body) {
+ const ResourceRequestBody& body) {
std::string encoded = EncodeResourceRequestBody(body);
return base::android::ToJavaByteArray(
env, reinterpret_cast<const uint8_t*>(encoded.data()), encoded.size());
@@ -51,13 +51,13 @@ CreateResourceRequestBodyFromBytes(
reinterpret_cast<const char*>(post_data.data()), post_data.size());
return ConvertResourceRequestBodyToJavaArray(
- env, static_cast<const ResourceRequestBodyImpl&>(*body));
+ env, static_cast<const ResourceRequestBody&>(*body));
}
base::android::ScopedJavaLocalRef<jobject>
ConvertResourceRequestBodyToJavaObject(
JNIEnv* env,
- const scoped_refptr<ResourceRequestBodyImpl>& body) {
+ const scoped_refptr<ResourceRequestBody>& body) {
if (!body)
return base::android::ScopedJavaLocalRef<jobject>();
@@ -69,7 +69,7 @@ ConvertResourceRequestBodyToJavaObject(
return Java_ResourceRequestBody_createFromEncodedNativeForm(env, j_encoded);
}
-scoped_refptr<ResourceRequestBodyImpl> ExtractResourceRequestBodyFromJavaObject(
+scoped_refptr<ResourceRequestBody> ExtractResourceRequestBodyFromJavaObject(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& j_body) {
if (!j_body)
« no previous file with comments | « content/common/android/resource_request_body_android.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698