From 1eb35c3e087bd291fc9d10a6a9e2f3172998f23d Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Tue, 22 Mar 2011 20:07:51 +0000 Subject: [Jingle] Refactored some notifier-related structs/classes Moved ServerInformation into its own header and added ServerList typedef. Added notifier_options_util.{h,cc}. BUG=None Review URL: http://codereview.chromium.org/6708076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79026 0039d316-1c4b-4281-b951-d872f2087c98 --- jingle/notifier/base/server_information.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 jingle/notifier/base/server_information.h (limited to 'jingle/notifier/base/server_information.h') diff --git a/jingle/notifier/base/server_information.h b/jingle/notifier/base/server_information.h new file mode 100644 index 0000000..c42b69e --- /dev/null +++ b/jingle/notifier/base/server_information.h @@ -0,0 +1,29 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// A utility struct for storing the information for an XMPP server. + +#ifndef JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_ +#define JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_ + +#include + +#include "net/base/host_port_pair.h" + +namespace notifier { + +struct ServerInformation { + ServerInformation(const net::HostPortPair& server, + bool special_port_magic); + ServerInformation(); + + net::HostPortPair server; + bool special_port_magic; +}; + +typedef std::vector ServerList; + +} // namespace notifier + +#endif // JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_ -- cgit v1.1