Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_ | 5 #ifndef JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_ |
| 6 #define JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_ | 6 #define JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 | |
| 8 #include "jingle/notifier/base/notification_method.h" | 10 #include "jingle/notifier/base/notification_method.h" |
| 9 #include "net/base/host_port_pair.h" | 11 #include "net/base/host_port_pair.h" |
| 10 | 12 |
| 11 namespace notifier { | 13 namespace notifier { |
| 12 | 14 |
| 13 struct NotifierOptions { | 15 struct NotifierOptions { |
| 14 NotifierOptions() | 16 NotifierOptions() |
| 15 : try_ssltcp_first(false), | 17 : try_ssltcp_first(false), |
| 16 allow_insecure_connection(false), | 18 allow_insecure_connection(false), |
| 17 invalidate_xmpp_login(false), | 19 invalidate_xmpp_login(false), |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 29 // that login fails. | 31 // that login fails. |
| 30 bool invalidate_xmpp_login; | 32 bool invalidate_xmpp_login; |
| 31 | 33 |
| 32 // Contains a custom URL and port for the notification server, if one is to | 34 // Contains a custom URL and port for the notification server, if one is to |
| 33 // be used. Empty otherwise. | 35 // be used. Empty otherwise. |
| 34 net::HostPortPair xmpp_host_port; | 36 net::HostPortPair xmpp_host_port; |
| 35 | 37 |
| 36 // Indicates the method used by sync clients while sending and listening to | 38 // Indicates the method used by sync clients while sending and listening to |
| 37 // notifications. | 39 // notifications. |
| 38 NotificationMethod notification_method; | 40 NotificationMethod notification_method; |
| 41 | |
| 42 // Specifies the auth mechanism to use ("X-GOOGLE-TOKEN", "X-OAUTH2" etc), | |
| 43 // If left empty, the underlying login code uses "X-GOOGLE-TOKEN" by default. | |
| 44 std::string auth_mechanism; | |
|
akalin
2011/03/08 22:55:37
What do you think about using an enum to pass arou
sanjeevr
2011/03/08 23:01:41
I used a string because it maps well to the SaslCo
akalin
2011/03/08 23:44:36
Fair enough. Although I expect we'll eventually s
| |
| 39 }; | 45 }; |
| 40 | 46 |
| 41 } // namespace notifier | 47 } // namespace notifier |
| 42 | 48 |
| 43 #endif // JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_ | 49 #endif // JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_ |
| OLD | NEW |