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

Side by Side Diff: components/cronet/android/java/src/org/chromium/net/UploadDataSink.java

Issue 849903002: [Cronet] Upload support for async APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined with Matt's CL Created 5 years, 10 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 2014 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 package org.chromium.net;
6
7 /**
8 * Interface with callbacks methods for UploadDataProviders. All methods may
9 * be called synchronously or asynchronously, on any thread.
10 */
11 public interface UploadDataSink {
12 /**
13 * Called by UploadDataProvider when a read succeeds.
14 * @param done For chunked uploads, true if this is the final read. Ignored
mef 2015/02/02 17:45:11 @param finalChunk
xunjieli 2015/02/02 18:25:42 Done.
15 * for non-chunked uploads.
pauljensen 2015/02/02 18:11:24 This is not ignored for non-chunked uploads, it in
xunjieli 2015/02/02 18:25:41 Done.
16 */
17 public void onReadSucceeded(boolean finalChunk);
18
19 /**
20 * Called by UploadDataProvider when a read fails.
21 * @param exception Exception passed on to the embedder.
22 */
23 public void onReadError(Exception exception);
24
25 /**
26 * Called by UploadDataProvider when a rewind succeeds.
27 */
28 public void onRewindSucceeded();
29
30 /**
31 * Called by UploadDataProvider when a rewind fails. or if rewiding uploads
mef 2015/02/02 17:45:11 sp: rewinding
xunjieli 2015/02/02 18:25:42 Done.
32 * is not supported.
33 * @param exception Exception passed on to the embedder.
34 */
35 public void onRewindError(Exception exception);
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698