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

Unified Diff: chrome/service/cloud_print/connector_settings.h

Issue 10966052: Added options to disable specific printers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 50eaa82888c5af73ac8a4d4ae7f2e17f24d64a53..9750727b594e72be61c9dc87c4b9623193d78e97 100644
--- a/chrome/service/cloud_print/connector_settings.h
+++ b/chrome/service/cloud_print/connector_settings.h
@@ -5,6 +5,7 @@
#ifndef CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_
#define CHROME_SERVICE_CLOUD_PRINT_CONNECTOR_SETTINGS_H_
+#include <set>
#include <string>
#include "base/memory/scoped_ptr.h"
@@ -37,10 +38,16 @@ class ConnectorSettings {
return delete_on_enum_fail_;
}
+ bool connect_new_printers() const {
+ return connect_new_printers_;
+ };
+
const base::DictionaryValue* print_system_settings() const {
return print_system_settings_.get();
};
+ bool IsPrinterBlacklisted(const std::string& name) const;
+
private:
// Cloud Print server url.
GURL server_url_;
@@ -53,6 +60,12 @@ class ConnectorSettings {
// even if the local enumeration failed.
bool delete_on_enum_fail_;
+ // If true register all new printers in cloud print.
+ bool connect_new_printers_;
+
+ // List of printers which should not be connected.
+ std::set<std::string> printer_blacklist_;
+
// Print system settings.
scoped_ptr<base::DictionaryValue> print_system_settings_;
« no previous file with comments | « chrome/service/cloud_print/cloud_print_connector.cc ('k') | chrome/service/cloud_print/connector_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698