Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / jingle / notifier / base / notifier_options.h
blob0d7b471969f4370d03663a642adac23c6374a601
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_
6 #define JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_
8 #include <string>
10 #include "base/memory/ref_counted.h"
11 #include "jingle/notifier/base/notification_method.h"
12 #include "net/base/host_port_pair.h"
13 #include "net/url_request/url_request_context_getter.h"
15 namespace notifier {
17 struct NotifierOptions {
18 NotifierOptions();
19 ~NotifierOptions();
21 // Indicates that the SSLTCP port (443) is to be tried before the the XMPP
22 // port (5222) during login.
23 bool try_ssltcp_first;
25 // Indicates that insecure connections (e.g., plain authentication,
26 // no TLS) are allowed. Only used for testing.
27 bool allow_insecure_connection;
29 // Indicates that the login info passed to XMPP is invalidated so
30 // that login fails.
31 bool invalidate_xmpp_login;
33 // Contains a custom URL and port for the notification server, if one is to
34 // be used. Empty otherwise.
35 net::HostPortPair xmpp_host_port;
37 // Indicates the method used by sync clients while sending and listening to
38 // notifications.
39 NotificationMethod notification_method;
41 // Specifies the auth mechanism to use ("X-GOOGLE-TOKEN", "X-OAUTH2", etc),
42 std::string auth_mechanism;
44 // The URLRequestContextGetter to use for doing I/O.
45 scoped_refptr<net::URLRequestContextGetter> request_context_getter;
48 } // namespace notifier
50 #endif // JINGLE_NOTIFIER_BASE_NOTIFIER_OPTIONS_H_