Index: jingle/notifier/base/notifier_options.h |
diff --git a/jingle/notifier/base/notifier_options.h b/jingle/notifier/base/notifier_options.h |
index 289b7d869e06553e226e51f997cbdac66dc39faf..32374cf5be127ef8941cf75af1bc213db357dae4 100644 |
--- a/jingle/notifier/base/notifier_options.h |
+++ b/jingle/notifier/base/notifier_options.h |
@@ -12,16 +12,23 @@ namespace notifier { |
struct NotifierOptions { |
NotifierOptions() |
- : try_ssltcp_first(false), |
+ : use_chrome_async_socket(true), |
+ try_ssltcp_first(false), |
notification_method(kDefaultNotificationMethod) {} |
- NotifierOptions(const bool try_ssltcp_first, |
+ NotifierOptions(const bool use_chrome_async_socket, |
+ const bool try_ssltcp_first, |
const net::HostPortPair& xmpp_host_port, |
NotificationMethod notification_method) |
- : try_ssltcp_first(try_ssltcp_first), |
+ : use_chrome_async_socket(use_chrome_async_socket), |
+ try_ssltcp_first(try_ssltcp_first), |
xmpp_host_port(xmpp_host_port), |
notification_method(notification_method) {} |
+ // Indicates whether to use the chrome-socket-based buzz::AsyncSocket |
+ // implementation for notifications. |
+ bool use_chrome_async_socket; |
+ |
// Indicates that the SSLTCP port (443) is to be tried before the the XMPP |
// port (5222) during login. |
bool try_ssltcp_first; |