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
3 // found in the LICENSE file.
5 // A utility struct for storing the information for an XMPP server.
7 #ifndef JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_
8 #define JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_
12 #include "net/base/host_port_pair.h"
16 enum SslTcpSupport
{ DOES_NOT_SUPPORT_SSLTCP
, SUPPORTS_SSLTCP
};
18 struct ServerInformation
{
19 ServerInformation(const net::HostPortPair
& server
,
20 SslTcpSupport ssltcp_support
);
24 bool Equals(const ServerInformation
& other
) const;
26 net::HostPortPair server
;
27 SslTcpSupport ssltcp_support
;
30 typedef std::vector
<ServerInformation
> ServerList
;
32 } // namespace notifier
34 #endif // JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_