| Index: components/cronet/android/wrapped_channel_upload_element_reader.h
|
| diff --git a/components/cronet/android/wrapped_channel_upload_element_reader.h b/components/cronet/android/wrapped_channel_upload_element_reader.h
|
| index 27e7a03c81b8923f0129944d5bc39e34f29bd233..25c71b59b5e819a7d382c1d5dabc84474133fe39 100644
|
| --- a/components/cronet/android/wrapped_channel_upload_element_reader.h
|
| +++ b/components/cronet/android/wrapped_channel_upload_element_reader.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "components/cronet/android/url_request_peer.h"
|
| #include "net/base/completion_callback.h"
|
| #include "net/base/upload_element_reader.h"
|
|
|
| @@ -18,15 +19,16 @@ class IOBuffer;
|
|
|
| namespace cronet {
|
|
|
| -bool WrappedChannelRegisterJni(JNIEnv* env);
|
| -
|
| // An UploadElementReader implementation for
|
| // java.nio.channels.ReadableByteChannel.
|
| // |channel_| should outlive this class because this class does not take the
|
| // ownership of the data.
|
| class WrappedChannelElementReader : public net::UploadElementReader {
|
| public:
|
| - WrappedChannelElementReader(JNIEnv* env, jobject channel, uint64 length);
|
| + WrappedChannelElementReader(
|
| + JNIEnv* env,
|
| + scoped_refptr<URLRequestPeer::URLRequestPeerDelegate> delegate,
|
| + uint64 length);
|
| virtual ~WrappedChannelElementReader();
|
|
|
| // UploadElementReader overrides:
|
| @@ -41,7 +43,7 @@ class WrappedChannelElementReader : public net::UploadElementReader {
|
| private:
|
| const uint64 length_;
|
| uint64 offset_;
|
| - jobject channel_;
|
| + scoped_refptr<URLRequestPeer::URLRequestPeerDelegate> delegate_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WrappedChannelElementReader);
|
| };
|
|
|