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

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

Issue 1307863006: [Cronet] Change interface APIs to abstract classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update CronetPerfTestActivity too Created 5 years, 3 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 package org.chromium.net.urlconnection; 5 package org.chromium.net.urlconnection;
6 6
7 import org.chromium.net.UploadDataProvider; 7 import org.chromium.net.UploadDataProvider;
8 8
9 import java.io.IOException; 9 import java.io.IOException;
10 import java.io.OutputStream; 10 import java.io.OutputStream;
11 11
12 /** 12 /**
13 * An abstract class of {@link OutputStream} that concrete implementations must 13 * An abstract class of {@link OutputStream} that concrete implementations must
14 * extend in order to be used in {@link CronetHttpURLConnection}. 14 * extend in order to be used in {@link CronetHttpURLConnection}.
15 */ 15 */
16 abstract class CronetOutputStream extends OutputStream implements UploadDataProv ider { 16 abstract class CronetOutputStream extends OutputStream {
17 /** 17 /**
18 * Tells the underlying implementation that connection has been established. 18 * Tells the underlying implementation that connection has been established.
19 * Used in {@link CronetHttpURLConnection}. 19 * Used in {@link CronetHttpURLConnection}.
20 */ 20 */
21 abstract void setConnected() throws IOException; 21 abstract void setConnected() throws IOException;
22 22
23 /** 23 /**
24 * Checks whether content received is less than Content-Length. 24 * Checks whether content received is less than Content-Length.
25 * Used in {@link CronetHttpURLConnection}. 25 * Used in {@link CronetHttpURLConnection}.
26 */ 26 */
27 abstract void checkReceivedEnoughContent() throws IOException; 27 abstract void checkReceivedEnoughContent() throws IOException;
28
29 /**
30 * Returns {@link UploadDataProvider} implementation.
31 */
32 abstract UploadDataProvider getUploadDataProvider();
28 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698