Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: chrome/service/cloud_print/connector_settings.h

Issue 11232048: Adding XMPP ping functionality to CLoudPrint. XMPP ping and timeout is controlled thorugh Service S… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 bool delete_on_enum_fail() const { 37 bool delete_on_enum_fail() const {
38 return delete_on_enum_fail_; 38 return delete_on_enum_fail_;
39 } 39 }
40 40
41 bool connect_new_printers() const { 41 bool connect_new_printers() const {
42 return connect_new_printers_; 42 return connect_new_printers_;
43 }; 43 };
44 44
45 bool xmpp_ping_enabled() const {
46 return xmpp_ping_enabled_;
47 }
48
49 int xmpp_ping_timeout_sec() const {
50 return xmpp_ping_timeout_sec_;
51 }
52
45 const base::DictionaryValue* print_system_settings() const { 53 const base::DictionaryValue* print_system_settings() const {
46 return print_system_settings_.get(); 54 return print_system_settings_.get();
47 }; 55 };
48 56
49 bool IsPrinterBlacklisted(const std::string& name) const; 57 bool IsPrinterBlacklisted(const std::string& name) const;
50 58
51 private: 59 private:
52 // Cloud Print server url. 60 // Cloud Print server url.
53 GURL server_url_; 61 GURL server_url_;
54 62
55 // This is initialized after a successful call to one of the Enable* methods. 63 // This is initialized after a successful call to one of the Enable* methods.
56 // It is not cleared in DisableUser. 64 // It is not cleared in DisableUser.
57 std::string proxy_id_; 65 std::string proxy_id_;
58 66
59 // If |true| printers that are not found locally will be deleted on GCP 67 // If |true| printers that are not found locally will be deleted on GCP
60 // even if the local enumeration failed. 68 // even if the local enumeration failed.
61 bool delete_on_enum_fail_; 69 bool delete_on_enum_fail_;
62 70
63 // If true register all new printers in cloud print. 71 // If true register all new printers in cloud print.
64 bool connect_new_printers_; 72 bool connect_new_printers_;
65 73
74 // Indicate if XMPP pings are enabled.
75 bool xmpp_ping_enabled_;
76
77 // Indicate timeout between XMPP pings.
78 int xmpp_ping_timeout_sec_;
79
66 // List of printers which should not be connected. 80 // List of printers which should not be connected.
67 std::set<std::string> printer_blacklist_; 81 std::set<std::string> printer_blacklist_;
68 82
69 // Print system settings. 83 // Print system settings.
70 scoped_ptr<base::DictionaryValue> print_system_settings_; 84 scoped_ptr<base::DictionaryValue> print_system_settings_;
71 85
72 DISALLOW_COPY_AND_ASSIGN(ConnectorSettings); 86 DISALLOW_COPY_AND_ASSIGN(ConnectorSettings);
73 }; 87 };
74 88
75 #endif // CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_ 89 #endif // CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_
76 90
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698