Some code cleaning.

This commit is contained in:
ali.ibrahim 2016-09-26 14:59:53 +02:00
parent f7525d7877
commit fcaf9cb031
5 changed files with 85 additions and 60 deletions

View file

@ -34,7 +34,8 @@ public:
const std::string& url,
base::WeakPtr<api::URLRequest> delegate);
void WriteBuffer(scoped_refptr<const net::IOBufferWithSize> buffer, bool is_last);
bool WriteBuffer(scoped_refptr<const net::IOBufferWithSize> buffer,
bool is_last);
void SetChunkedUpload();
void Abort() const;
void SetHeader(const std::string& name, const std::string& value) const;
@ -54,7 +55,8 @@ protected:
private:
friend class base::RefCountedThreadSafe<AtomURLRequest>;
void DoWriteBuffer(scoped_refptr<const net::IOBufferWithSize> buffer, bool is_last);
void DoWriteBuffer(scoped_refptr<const net::IOBufferWithSize> buffer,
bool is_last);
void DoSetAuth(const base::string16& username,
const base::string16& password) const;
void DoCancelAuth() const;