| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |