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

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

Issue 8824006: Migrate net/socket/socket.h, net/socket/stream_socket.h to base::Bind(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years 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
« no previous file with comments | « net/udp/udp_socket_win.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) 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // TODO(ibrar): Yet to give another look at this function. 57 // TODO(ibrar): Yet to give another look at this function.
58 virtual uint64 GetUploadProgress() const OVERRIDE; 58 virtual uint64 GetUploadProgress() const OVERRIDE;
59 virtual bool ReadRawData(IOBuffer* buf, 59 virtual bool ReadRawData(IOBuffer* buf,
60 int buf_size, 60 int buf_size,
61 int *bytes_read) OVERRIDE; 61 int *bytes_read) OVERRIDE;
62 62
63 FtpRequestInfo request_info_; 63 FtpRequestInfo request_info_;
64 scoped_ptr<FtpTransaction> transaction_; 64 scoped_ptr<FtpTransaction> transaction_;
65 65
66 OldCompletionCallbackImpl<URLRequestFtpJob> start_callback_;
67 OldCompletionCallbackImpl<URLRequestFtpJob> read_callback_;
68
69 bool read_in_progress_; 66 bool read_in_progress_;
70 67
71 scoped_refptr<AuthData> server_auth_; 68 scoped_refptr<AuthData> server_auth_;
72 69
73 // Keep a reference to the url request context to be sure it's not deleted 70 // Keep a reference to the url request context to be sure it's not deleted
74 // before us. 71 // before us.
75 scoped_refptr<const URLRequestContext> context_; 72 scoped_refptr<const URLRequestContext> context_;
76 73
77 ScopedRunnableMethodFactory<URLRequestFtpJob> method_factory_; 74 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
78 75
79 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 76 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
80 }; 77 };
81 78
82 } // namespace net 79 } // namespace net
83 80
84 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 81 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW
« no previous file with comments | « net/udp/udp_socket_win.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