Adding support for upload chunked encoding.
This commit is contained in:
parent
9498a5738a
commit
cbbc4376ca
5 changed files with 95 additions and 24 deletions
|
@ -86,7 +86,7 @@ scoped_refptr<AtomURLRequest> AtomURLRequest::Create(
|
|||
}
|
||||
|
||||
|
||||
bool AtomURLRequest::WriteBuffer(
|
||||
bool AtomURLRequest::Write(
|
||||
scoped_refptr<const net::IOBufferWithSize> buffer,
|
||||
bool is_last) {
|
||||
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
const std::string& url,
|
||||
base::WeakPtr<api::URLRequest> delegate);
|
||||
|
||||
bool WriteBuffer(scoped_refptr<const net::IOBufferWithSize> buffer,
|
||||
bool Write(scoped_refptr<const net::IOBufferWithSize> buffer,
|
||||
bool is_last);
|
||||
void SetChunkedUpload(bool is_chunked_upload);
|
||||
void Abort() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue