Index: components/cronet/android/url_request_peer.h |
diff --git a/components/cronet/android/url_request_peer.h b/components/cronet/android/url_request_peer.h |
index 5aa265de2b3e4589386bf391737a3fcff827d842..a6e4f9e177b65a3040768fffb41a283337e8c5ff 100644 |
--- a/components/cronet/android/url_request_peer.h |
+++ b/components/cronet/android/url_request_peer.h |
@@ -37,6 +37,7 @@ class URLRequestPeer : public net::URLRequest::Delegate { |
virtual void OnResponseStarted(URLRequestPeer* request) = 0; |
virtual void OnBytesRead(URLRequestPeer* request) = 0; |
virtual void OnRequestFinished(URLRequestPeer* request) = 0; |
+ virtual int ReadFromUploadChannel(net::IOBuffer* buf, int buf_length) = 0; |
protected: |
friend class base::RefCountedThreadSafe<URLRequestPeerDelegate>; |
@@ -59,7 +60,7 @@ class URLRequestPeer : public net::URLRequest::Delegate { |
void SetUploadContent(const char* bytes, int bytes_len); |
// Sets the request to streaming upload. |
- void SetUploadChannel(JNIEnv* env, jobject content, int64 content_length); |
+ void SetUploadChannel(JNIEnv* env, int64 content_length); |
// Starts the request. |
void Start(); |