Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / jingle / notifier / base / server_information.h
blobc6e3ffdb5b71c4468486f4d29a80dbea1285867d
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.
4 //
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_
10 #include <vector>
12 #include "net/base/host_port_pair.h"
14 namespace notifier {
16 enum SslTcpSupport { DOES_NOT_SUPPORT_SSLTCP, SUPPORTS_SSLTCP };
18 struct ServerInformation {
19 ServerInformation(const net::HostPortPair& server,
20 SslTcpSupport ssltcp_support);
21 ServerInformation();
22 ~ServerInformation();
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_