Home | History | Annotate | Download | only in base
      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.
      6 
      7 #ifndef JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_
      8 #define JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_
      9 
     10 #include <vector>
     11 
     12 #include "net/base/host_port_pair.h"
     13 
     14 namespace notifier {
     15 
     16 enum SslTcpSupport { DOES_NOT_SUPPORT_SSLTCP, SUPPORTS_SSLTCP };
     17 
     18 struct ServerInformation {
     19   ServerInformation(const net::HostPortPair& server,
     20                     SslTcpSupport ssltcp_support);
     21   ServerInformation();
     22   ~ServerInformation();
     23 
     24   bool Equals(const ServerInformation& other) const;
     25 
     26   net::HostPortPair server;
     27   SslTcpSupport ssltcp_support;
     28 };
     29 
     30 typedef std::vector<ServerInformation> ServerList;
     31 
     32 }  // namespace notifier
     33 
     34 #endif  // JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_
     35