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

Unified 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: added missing files Created 8 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/service/cloud_print/connector_settings.h
diff --git a/chrome/service/cloud_print/connector_settings.h b/chrome/service/cloud_print/connector_settings.h
index 9750727b594e72be61c9dc87c4b9623193d78e97..4c9b086cf4df55e0c70213c8650ba2c1672ff09f 100644
--- a/chrome/service/cloud_print/connector_settings.h
+++ b/chrome/service/cloud_print/connector_settings.h
@@ -42,12 +42,26 @@ class ConnectorSettings {
return connect_new_printers_;
};
+ bool xmpp_ping_enabled() const {
+ return xmpp_ping_enabled_;
+ }
+
+ void set_xmpp_ping_enabled(bool enabled) {
+ xmpp_ping_enabled_ = enabled;
+ }
+
+ int xmpp_ping_timeout_sec() const {
+ return xmpp_ping_timeout_sec_;
+ }
+
const base::DictionaryValue* print_system_settings() const {
return print_system_settings_.get();
};
bool IsPrinterBlacklisted(const std::string& name) const;
+ void SetXmppPingTimeoutSec(int timeout);
+
private:
// Cloud Print server url.
GURL server_url_;
@@ -63,6 +77,12 @@ class ConnectorSettings {
// If true register all new printers in cloud print.
bool connect_new_printers_;
+ // Indicate if XMPP pings are enabled.
+ bool xmpp_ping_enabled_;
+
+ // Indicate timeout between XMPP pings.
+ int xmpp_ping_timeout_sec_;
+
// List of printers which should not be connected.
std::set<std::string> printer_blacklist_;

Powered by Google App Engine
This is Rietveld 408576698