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

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

Issue 2298823002: Resetting the HttpRequestInfo pointers in HttpNetworkTransaction and streams (Closed)
Patch Set: Rebased, removed upload progress plumbing, feedback. (Rebased till refs/heads/master@{#417381}) Created 4 years, 3 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 unified diff | Download patch
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/macros.h" 10 #include "base/macros.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void LogFtpServerType(char server_type); 63 void LogFtpServerType(char server_type);
64 64
65 // Overridden from URLRequestJob: 65 // Overridden from URLRequestJob:
66 LoadState GetLoadState() const override; 66 LoadState GetLoadState() const override;
67 bool NeedsAuth() override; 67 bool NeedsAuth() override;
68 void GetAuthChallengeInfo( 68 void GetAuthChallengeInfo(
69 scoped_refptr<AuthChallengeInfo>* auth_info) override; 69 scoped_refptr<AuthChallengeInfo>* auth_info) override;
70 void SetAuth(const AuthCredentials& credentials) override; 70 void SetAuth(const AuthCredentials& credentials) override;
71 void CancelAuth() override; 71 void CancelAuth() override;
72 72
73 // TODO(ibrar): Yet to give another look at this function.
74 UploadProgress GetUploadProgress() const override;
75 int ReadRawData(IOBuffer* buf, int buf_size) override; 73 int ReadRawData(IOBuffer* buf, int buf_size) override;
76 74
77 void HandleAuthNeededResponse(); 75 void HandleAuthNeededResponse();
78 76
79 RequestPriority priority_; 77 RequestPriority priority_;
80 78
81 ProxyService* proxy_service_; 79 ProxyService* proxy_service_;
82 ProxyInfo proxy_info_; 80 ProxyInfo proxy_info_;
83 ProxyService::PacRequest* pac_request_; 81 ProxyService::PacRequest* pac_request_;
84 82
(...skipping 12 matching lines...) Expand all
97 FtpAuthCache* ftp_auth_cache_; 95 FtpAuthCache* ftp_auth_cache_;
98 96
99 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; 97 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
100 98
101 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 99 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
102 }; 100 };
103 101
104 } // namespace net 102 } // namespace net
105 103
106 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 104 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698