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

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

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix latent merge conflict with r192649 Created 7 years, 8 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 | Annotate | Revision Log
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 15 matching lines...) Expand all
26 26
27 // A URLRequestJob subclass that is built on top of FtpTransaction. It 27 // A URLRequestJob subclass that is built on top of FtpTransaction. It
28 // provides an implementation for FTP. 28 // provides an implementation for FTP.
29 class NET_EXPORT_PRIVATE URLRequestFtpJob : public URLRequestJob { 29 class NET_EXPORT_PRIVATE URLRequestFtpJob : public URLRequestJob {
30 public: 30 public:
31 URLRequestFtpJob(URLRequest* request, 31 URLRequestFtpJob(URLRequest* request,
32 NetworkDelegate* network_delegate, 32 NetworkDelegate* network_delegate,
33 FtpTransactionFactory* ftp_transaction_factory, 33 FtpTransactionFactory* ftp_transaction_factory,
34 FtpAuthCache* ftp_auth_cache); 34 FtpAuthCache* ftp_auth_cache);
35 35
36 // TODO(shalev): get rid of this function in favor of FtpProtocolHandler.
37 static URLRequestJob* Factory(URLRequest* request,
38 NetworkDelegate* network_delegate,
39 const std::string& scheme);
40
41 protected: 36 protected:
42 virtual ~URLRequestFtpJob(); 37 virtual ~URLRequestFtpJob();
43 38
44 // Overridden from URLRequestJob: 39 // Overridden from URLRequestJob:
45 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; 40 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE;
46 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 41 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
47 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE; 42 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE;
48 virtual HostPortPair GetSocketAddress() const OVERRIDE; 43 virtual HostPortPair GetSocketAddress() const OVERRIDE;
49 virtual void SetPriority(RequestPriority priority) OVERRIDE; 44 virtual void SetPriority(RequestPriority priority) OVERRIDE;
50 virtual void Start() OVERRIDE; 45 virtual void Start() OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 97
103 FtpTransactionFactory* ftp_transaction_factory_; 98 FtpTransactionFactory* ftp_transaction_factory_;
104 FtpAuthCache* ftp_auth_cache_; 99 FtpAuthCache* ftp_auth_cache_;
105 100
106 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 101 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
107 }; 102 };
108 103
109 } // namespace net 104 } // namespace net
110 105
111 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 106 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698