Fix nullptr crash in OnEmbed
[chromium-blink-merge.git] / net / ftp / ftp_network_session.h
blob0ef5b781eec4eced9d7268b21ce4b506d263032e
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
3 // found in the LICENSE file.
5 #ifndef NET_FTP_FTP_NETWORK_SESSION_H_
6 #define NET_FTP_FTP_NETWORK_SESSION_H_
8 #include "net/base/net_export.h"
10 namespace net {
12 class HostResolver;
14 // This class holds session objects used by FtpNetworkTransaction objects.
15 class NET_EXPORT_PRIVATE FtpNetworkSession {
16 public:
17 explicit FtpNetworkSession(HostResolver* host_resolver);
18 virtual ~FtpNetworkSession();
20 HostResolver* host_resolver() { return host_resolver_; }
22 private:
23 HostResolver* const host_resolver_;
26 } // namespace net
28 #endif // NET_FTP_FTP_NETWORK_SESSION_H_