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 package org.chromium.net; | 5 package org.chromium.net; |
6 | 6 |
7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.annotations.CalledByNative; |
8 import org.chromium.base.JNINamespace; | 8 import org.chromium.base.annotations.JNINamespace; |
9 import org.chromium.base.NativeClassQualifiedName; | 9 import org.chromium.base.annotations.NativeClassQualifiedName; |
10 | 10 |
11 import java.nio.ByteBuffer; | 11 import java.nio.ByteBuffer; |
12 import java.util.concurrent.Executor; | 12 import java.util.concurrent.Executor; |
13 import java.util.concurrent.RejectedExecutionException; | 13 import java.util.concurrent.RejectedExecutionException; |
14 | 14 |
15 /** | 15 /** |
16 * CronetUploadDataStream handles communication between an upload body | 16 * CronetUploadDataStream handles communication between an upload body |
17 * encapsulated in the embedder's {@link UploadDataSink} and a C++ | 17 * encapsulated in the embedder's {@link UploadDataSink} and a C++ |
18 * UploadDataStreamAdapter, which it owns. It's attached to a {@link | 18 * UploadDataStreamAdapter, which it owns. It's attached to a {@link |
19 * CronetURLRequest}'s during the construction of request's native C++ objects | 19 * CronetURLRequest}'s during the construction of request's native C++ objects |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 @NativeClassQualifiedName("CronetUploadDataStreamAdapter") | 327 @NativeClassQualifiedName("CronetUploadDataStreamAdapter") |
328 private native void nativeOnReadSucceeded(long nativePtr, | 328 private native void nativeOnReadSucceeded(long nativePtr, |
329 int bytesRead, boolean finalChunk); | 329 int bytesRead, boolean finalChunk); |
330 | 330 |
331 @NativeClassQualifiedName("CronetUploadDataStreamAdapter") | 331 @NativeClassQualifiedName("CronetUploadDataStreamAdapter") |
332 private native void nativeOnRewindSucceeded(long nativePtr); | 332 private native void nativeOnRewindSucceeded(long nativePtr); |
333 | 333 |
334 private static native void nativeDestroyAdapter( | 334 private static native void nativeDestroyAdapter( |
335 long uploadDataStreamAdapter); | 335 long uploadDataStreamAdapter); |
336 } | 336 } |
OLD | NEW |