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

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: Remove spurious space. 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..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();
« no previous file with comments | « components/cronet/android/org_chromium_net_UrlRequest.cc ('k') | components/cronet/android/url_request_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698