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

Side by Side Diff: net/ftp/ftp_network_session.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: sync (r198785) Created 7 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) 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_FTP_FTP_NETWORK_SESSION_H_ 5 #ifndef NET_FTP_FTP_NETWORK_SESSION_H_
6 #define NET_FTP_FTP_NETWORK_SESSION_H_ 6 #define NET_FTP_FTP_NETWORK_SESSION_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 #include "net/ftp/ftp_auth_cache.h"
11 10
12 namespace net { 11 namespace net {
13 12
14 class HostResolver; 13 class HostResolver;
15 14
16 // This class holds session objects used by FtpNetworkTransaction objects. 15 // This class holds session objects used by FtpNetworkTransaction objects.
17 class NET_EXPORT_PRIVATE FtpNetworkSession 16 class NET_EXPORT_PRIVATE FtpNetworkSession
18 : public base::RefCounted<FtpNetworkSession> { 17 : public base::RefCounted<FtpNetworkSession> {
19 public: 18 public:
20 explicit FtpNetworkSession(HostResolver* host_resolver); 19 explicit FtpNetworkSession(HostResolver* host_resolver);
21 20
22 HostResolver* host_resolver() { return host_resolver_; } 21 HostResolver* host_resolver() { return host_resolver_; }
23 FtpAuthCache* auth_cache() { return &auth_cache_; }
24 22
25 private: 23 private:
26 friend class base::RefCounted<FtpNetworkSession>; 24 friend class base::RefCounted<FtpNetworkSession>;
27 25
28 virtual ~FtpNetworkSession(); 26 virtual ~FtpNetworkSession();
29 27
30 HostResolver* const host_resolver_; 28 HostResolver* const host_resolver_;
31 FtpAuthCache auth_cache_;
32 }; 29 };
33 30
34 } // namespace net 31 } // namespace net
35 32
36 #endif // NET_FTP_FTP_NETWORK_SESSION_H_ 33 #endif // NET_FTP_FTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « content/shell/shell_url_request_context_getter.cc ('k') | net/proxy/proxy_script_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698