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

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

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 // provides an implementation for FTP. 24 // provides an implementation for FTP.
25 class URLRequestFtpJob : public URLRequestJob { 25 class URLRequestFtpJob : public URLRequestJob {
26 public: 26 public:
27 explicit URLRequestFtpJob(URLRequest* request); 27 explicit URLRequestFtpJob(URLRequest* request);
28 28
29 static URLRequestJob* Factory(URLRequest* request, 29 static URLRequestJob* Factory(URLRequest* request,
30 const std::string& scheme); 30 const std::string& scheme);
31 31
32 // Overridden from URLRequestJob: 32 // Overridden from URLRequestJob:
33 virtual bool GetMimeType(std::string* mime_type) const; 33 virtual bool GetMimeType(std::string* mime_type) const;
34 virtual std::string GetSocketAddress() const;
34 35
35 private: 36 private:
36 virtual ~URLRequestFtpJob(); 37 virtual ~URLRequestFtpJob();
37 38
38 void StartTransaction(); 39 void StartTransaction();
39 40
40 void OnStartCompleted(int result); 41 void OnStartCompleted(int result);
41 void OnReadCompleted(int result); 42 void OnReadCompleted(int result);
42 43
43 void RestartTransactionWithAuth(); 44 void RestartTransactionWithAuth();
(...skipping 30 matching lines...) Expand all
74 scoped_refptr<URLRequestContext> context_; 75 scoped_refptr<URLRequestContext> context_;
75 76
76 ScopedRunnableMethodFactory<URLRequestFtpJob> method_factory_; 77 ScopedRunnableMethodFactory<URLRequestFtpJob> method_factory_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 79 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
79 }; 80 };
80 81
81 } // namespace net 82 } // namespace net
82 83
83 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 84 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698