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

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

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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_directory_listing_parser_windows.cc ('k') | net/ftp/ftp_network_session.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "net/ftp/ftp_auth_cache.h" 10 #include "net/ftp/ftp_auth_cache.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 class HostResolver; 14 class HostResolver;
15 15
16 // This class holds session objects used by FtpNetworkTransaction objects. 16 // This class holds session objects used by FtpNetworkTransaction objects.
17 class FtpNetworkSession : public base::RefCounted<FtpNetworkSession> { 17 class FtpNetworkSession : public base::RefCounted<FtpNetworkSession> {
18 public: 18 public:
19 explicit FtpNetworkSession(HostResolver* host_resolver) 19 explicit FtpNetworkSession(HostResolver* host_resolver);
20 : host_resolver_(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_; } 22 FtpAuthCache* auth_cache() { return &auth_cache_; }
24 23
25 private: 24 private:
26 friend class base::RefCounted<FtpNetworkSession>; 25 friend class base::RefCounted<FtpNetworkSession>;
27 26
28 ~FtpNetworkSession() {} 27 virtual ~FtpNetworkSession();
29 28
30 HostResolver* const host_resolver_; 29 HostResolver* const host_resolver_;
31 FtpAuthCache auth_cache_; 30 FtpAuthCache auth_cache_;
32 }; 31 };
33 32
34 } // namespace net 33 } // namespace net
35 34
36 #endif // NET_FTP_FTP_NETWORK_SESSION_H_ 35 #endif // NET_FTP_FTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_windows.cc ('k') | net/ftp/ftp_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698