summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base/server_information.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 20:07:51 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 20:07:51 +0000
commit1eb35c3e087bd291fc9d10a6a9e2f3172998f23d (patch)
tree576da9a1a123c934394f9f33483b1e41d1c6453e /jingle/notifier/base/server_information.h
parent80d1a8c2443c3dc71de5f94f4ca5e7f3a9f6b052 (diff)
downloadchromium_src-1eb35c3e087bd291fc9d10a6a9e2f3172998f23d.zip
chromium_src-1eb35c3e087bd291fc9d10a6a9e2f3172998f23d.tar.gz
chromium_src-1eb35c3e087bd291fc9d10a6a9e2f3172998f23d.tar.bz2
[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
Diffstat (limited to 'jingle/notifier/base/server_information.h')
-rw-r--r--jingle/notifier/base/server_information.h29
1 files changed, 29 insertions, 0 deletions
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 <vector>
+
+#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<ServerInformation> ServerList;
+
+} // namespace notifier
+
+#endif // JINGLE_NOTIFIER_BASE_SERVER_INFORMATION_H_