summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base
diff options
context:
space:
mode:
Diffstat (limited to 'jingle/notifier/base')
-rw-r--r--jingle/notifier/base/notifier_options.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/jingle/notifier/base/notifier_options.h b/jingle/notifier/base/notifier_options.h
index a7a8d25..289b7d8 100644
--- a/jingle/notifier/base/notifier_options.h
+++ b/jingle/notifier/base/notifier_options.h
@@ -12,17 +12,19 @@ namespace notifier {
struct NotifierOptions {
NotifierOptions()
- : allow_insecure_connection(false),
- invalidate_xmpp_login(false),
+ : try_ssltcp_first(false),
notification_method(kDefaultNotificationMethod) {}
- // Indicates that insecure connections (e.g., plain authentication,
- // no TLS) are allowed. Only used for testing.
- bool allow_insecure_connection;
+ NotifierOptions(const bool try_ssltcp_first,
+ const net::HostPortPair& xmpp_host_port,
+ NotificationMethod notification_method)
+ : try_ssltcp_first(try_ssltcp_first),
+ xmpp_host_port(xmpp_host_port),
+ notification_method(notification_method) {}
- // Indicates that the login info passed to XMPP is invalidated so
- // that login fails.
- bool invalidate_xmpp_login;
+ // Indicates that the SSLTCP port (443) is to be tried before the the XMPP
+ // port (5222) during login.
+ bool try_ssltcp_first;
// Contains a custom URL and port for the notification server, if one is to
// be used. Empty otherwise.