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

Side by Side Diff: net/ftp/ftp_network_transaction.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_FTP_FTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_FTP_FTP_NETWORK_TRANSACTION_H_
6 #define NET_FTP_FTP_NETWORK_TRANSACTION_H_ 6 #define NET_FTP_FTP_NETWORK_TRANSACTION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 virtual int Stop(int error); 35 virtual int Stop(int error);
36 virtual int RestartIgnoringLastError(const CompletionCallback& callback); 36 virtual int RestartIgnoringLastError(const CompletionCallback& callback);
37 37
38 // FtpTransaction methods: 38 // FtpTransaction methods:
39 virtual int Start(const FtpRequestInfo* request_info, 39 virtual int Start(const FtpRequestInfo* request_info,
40 const CompletionCallback& callback, 40 const CompletionCallback& callback,
41 const BoundNetLog& net_log) OVERRIDE; 41 const BoundNetLog& net_log) OVERRIDE;
42 virtual int RestartWithAuth(const AuthCredentials& credentials, 42 virtual int RestartWithAuth(const AuthCredentials& credentials,
43 const CompletionCallback& callback) OVERRIDE; 43 const CompletionCallback& callback) OVERRIDE;
44 virtual int Read(IOBuffer* buf, int buf_len, 44 virtual int Read(IOBuffer* buf,
45 int buf_len,
45 const CompletionCallback& callback) OVERRIDE; 46 const CompletionCallback& callback) OVERRIDE;
46 virtual const FtpResponseInfo* GetResponseInfo() const OVERRIDE; 47 virtual const FtpResponseInfo* GetResponseInfo() const OVERRIDE;
47 virtual LoadState GetLoadState() const OVERRIDE; 48 virtual LoadState GetLoadState() const OVERRIDE;
48 virtual uint64 GetUploadProgress() const OVERRIDE; 49 virtual uint64 GetUploadProgress() const OVERRIDE;
49 50
50 private: 51 private:
51 FRIEND_TEST_ALL_PREFIXES(FtpNetworkTransactionTest, 52 FRIEND_TEST_ALL_PREFIXES(FtpNetworkTransactionTest,
52 DownloadTransactionEvilPasvUnsafeHost); 53 DownloadTransactionEvilPasvUnsafeHost);
53 54
54 enum Command { 55 enum Command {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 State next_state_; 255 State next_state_;
255 256
256 // State to switch to after data connection is complete. 257 // State to switch to after data connection is complete.
257 State state_after_data_connect_complete_; 258 State state_after_data_connect_complete_;
258 }; 259 };
259 260
260 } // namespace net 261 } // namespace net
261 262
262 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_ 263 #endif // NET_FTP_FTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698