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

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

Issue 115137: FTP Transaction code for new Portable FTP code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 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
« no previous file with comments | « net/ftp/ftp_transaction.h ('k') | net/url_request/url_request_new_ftp_job.h » ('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) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef NET_FTP_FTP_TRANSACTION_FACTORY_H_ 5 #ifndef NET_FTP_FTP_TRANSACTION_FACTORY_H_
6 #define NET_FTP_FTP_TRANSACTION_FACTORY_H_ 6 #define NET_FTP_FTP_TRANSACTION_FACTORY_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 class FtpAuthCache;
11 class FtpTransaction; 10 class FtpTransaction;
12 11
13 // An interface to a class that can create FtpTransaction objects. 12 // An interface to a class that can create FtpTransaction objects.
14 class FtpTransactionFactory { 13 class FtpTransactionFactory {
15 public: 14 public:
16 virtual ~FtpTransactionFactory() {} 15 virtual ~FtpTransactionFactory() {}
17 16
18 // Creates a FtpTransaction object. 17 // Creates a FtpTransaction object.
19 virtual FtpTransaction* CreateTransaction() = 0; 18 virtual FtpTransaction* CreateTransaction() = 0;
20 19
21 // Returns the associated FTP auth cache if any (may be NULL).
22 virtual FtpAuthCache* GetAuthCache() = 0;
23
24 // Suspends the creation of new transactions. If |suspend| is false, creation 20 // Suspends the creation of new transactions. If |suspend| is false, creation
25 // of new transactions is resumed. 21 // of new transactions is resumed.
26 virtual void Suspend(bool suspend) = 0; 22 virtual void Suspend(bool suspend) = 0;
27 }; 23 };
28 24
29 } // namespace net 25 } // namespace net
30 26
31 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_ 27 #endif // NET_FTP_FTP_TRANSACTION_FACTORY_H_
OLDNEW
« no previous file with comments | « net/ftp/ftp_transaction.h ('k') | net/url_request/url_request_new_ftp_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698