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

Side by Side Diff: net/url_request/url_request_ftp_job.h

Issue 1467603002: URLRequestJob: change ReadRawData contract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add done_reading_called_ to MockNetworkTransaction Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | net/url_request/url_request_ftp_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Overridden from URLRequestJob: 64 // Overridden from URLRequestJob:
65 LoadState GetLoadState() const override; 65 LoadState GetLoadState() const override;
66 bool NeedsAuth() override; 66 bool NeedsAuth() override;
67 void GetAuthChallengeInfo( 67 void GetAuthChallengeInfo(
68 scoped_refptr<AuthChallengeInfo>* auth_info) override; 68 scoped_refptr<AuthChallengeInfo>* auth_info) override;
69 void SetAuth(const AuthCredentials& credentials) override; 69 void SetAuth(const AuthCredentials& credentials) override;
70 void CancelAuth() override; 70 void CancelAuth() override;
71 71
72 // TODO(ibrar): Yet to give another look at this function. 72 // TODO(ibrar): Yet to give another look at this function.
73 UploadProgress GetUploadProgress() const override; 73 UploadProgress GetUploadProgress() const override;
74 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; 74 int ReadRawData(IOBuffer* buf, int buf_size) override;
75 75
76 void HandleAuthNeededResponse(); 76 void HandleAuthNeededResponse();
77 77
78 RequestPriority priority_; 78 RequestPriority priority_;
79 79
80 ProxyService* proxy_service_; 80 ProxyService* proxy_service_;
81 ProxyInfo proxy_info_; 81 ProxyInfo proxy_info_;
82 ProxyService::PacRequest* pac_request_; 82 ProxyService::PacRequest* pac_request_;
83 83
84 FtpRequestInfo ftp_request_info_; 84 FtpRequestInfo ftp_request_info_;
(...skipping 11 matching lines...) Expand all
96 FtpAuthCache* ftp_auth_cache_; 96 FtpAuthCache* ftp_auth_cache_;
97 97
98 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; 98 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 100 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
101 }; 101 };
102 102
103 } // namespace net 103 } // namespace net
104 104
105 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 105 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | net/url_request/url_request_ftp_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698