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

Unified Diff: components/cronet/android/url_request_peer.h

Issue 442803002: Remove explicit JNI references by adding UrlRequest.readFromUploadChannel callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
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..524c12be689929558f3204b6c2c22ebf177947b2 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 OnReadUploadData(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();

Powered by Google App Engine
This is Rietveld 408576698