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

Side by Side Diff: components/cronet/android/cronet_upload_data_stream_delegate.cc

Issue 948503004: [Cronet] Enable chunked upload in CronetUrlRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 5 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/cronet/android/cronet_upload_data_stream_delegate.h" 5 #include "components/cronet/android/cronet_upload_data_stream_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h"
12 #include "base/message_loop/message_loop_proxy.h" 13 #include "base/message_loop/message_loop_proxy.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "components/cronet/android/cronet_url_request_adapter.h" 15 #include "components/cronet/android/cronet_url_request_adapter.h"
15 #include "jni/CronetUploadDataStream_jni.h" 16 #include "jni/CronetUploadDataStream_jni.h"
16 17
17 using base::android::ConvertUTF8ToJavaString; 18 using base::android::ConvertUTF8ToJavaString;
18 19
19 namespace cronet { 20 namespace cronet {
20 21
21 CronetUploadDataStreamDelegate::CronetUploadDataStreamDelegate( 22 CronetUploadDataStreamDelegate::CronetUploadDataStreamDelegate(
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 jclass jcronet_url_request_adapter, 139 jclass jcronet_url_request_adapter,
139 jlong jupload_data_stream_delegate) { 140 jlong jupload_data_stream_delegate) {
140 CronetUploadDataStreamDelegate* delegate = 141 CronetUploadDataStreamDelegate* delegate =
141 reinterpret_cast<CronetUploadDataStreamDelegate*>( 142 reinterpret_cast<CronetUploadDataStreamDelegate*>(
142 jupload_data_stream_delegate); 143 jupload_data_stream_delegate);
143 DCHECK(delegate != nullptr); 144 DCHECK(delegate != nullptr);
144 delete delegate; 145 delete delegate;
145 } 146 }
146 147
147 } // namespace cronet 148 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698