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

Unified Diff: chrome/service/cloud_print/cloud_print_connector.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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/service/cloud_print/cloud_print_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_connector.h
diff --git a/chrome/service/cloud_print/cloud_print_connector.h b/chrome/service/cloud_print/cloud_print_connector.h
index 5489c00e9a9728cfa2e4c09ffbd93cb8db32dfb6..748e225149d4f864f67ac42d6dc278893cf80270 100644
--- a/chrome/service/cloud_print/cloud_print_connector.h
+++ b/chrome/service/cloud_print/cloud_print_connector.h
@@ -24,9 +24,9 @@
// CloudPrintConnector will notify client over Client interface.
class CloudPrintConnector
: public base::RefCountedThreadSafe<CloudPrintConnector>,
- public cloud_print::PrintServerWatcherDelegate,
- public PrinterJobHandlerDelegate,
- public CloudPrintURLFetcherDelegate {
+ private cloud_print::PrintServerWatcherDelegate,
+ private PrinterJobHandlerDelegate,
+ private CloudPrintURLFetcherDelegate {
public:
class Client {
public:
@@ -44,32 +44,10 @@ class CloudPrintConnector
// Return list of printer ids registered with CloudPrint.
void GetPrinterIds(std::list<std::string>* printer_ids);
- // Register printer from the list.
- void RegisterPrinters(const printing::PrinterList& printers);
-
// Check for jobs for specific printer. If printer id is empty
// jobs will be checked for all available printers.
void CheckForJobs(const std::string& reason, const std::string& printer_id);
- // cloud_print::PrintServerWatcherDelegate implementation
- virtual void OnPrinterAdded() OVERRIDE;
- // PrinterJobHandler::Delegate implementation
- virtual void OnPrinterDeleted(const std::string& printer_name) OVERRIDE;
- virtual void OnAuthError() OVERRIDE;
-
- // CloudPrintURLFetcher::Delegate implementation.
- virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
- const net::URLFetcher* source,
- const GURL& url,
- const std::string& data) OVERRIDE;
- virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
- const net::URLFetcher* source,
- const GURL& url,
- base::DictionaryValue* json_data,
- bool succeeded) OVERRIDE;
- virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
- virtual std::string GetAuthHeader() OVERRIDE;
-
private:
friend class base::RefCountedThreadSafe<CloudPrintConnector>;
@@ -100,6 +78,24 @@ class CloudPrintConnector
};
virtual ~CloudPrintConnector();
+ // cloud_print::PrintServerWatcherDelegate implementation
+ virtual void OnPrinterAdded() OVERRIDE;
+ // PrinterJobHandler::Delegate implementation
+ virtual void OnPrinterDeleted(const std::string& printer_name) OVERRIDE;
+ virtual void OnAuthError() OVERRIDE;
+
+ // CloudPrintURLFetcher::Delegate implementation.
+ virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
+ const net::URLFetcher* source,
+ const GURL& url,
+ const std::string& data) OVERRIDE;
+ virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
+ const net::URLFetcher* source,
+ const GURL& url,
+ base::DictionaryValue* json_data,
+ bool succeeded) OVERRIDE;
+ virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
+ virtual std::string GetAuthHeader() OVERRIDE;
// Begin response handlers
CloudPrintURLFetcher::ResponseAction HandlePrinterListResponse(
@@ -155,6 +151,9 @@ class CloudPrintConnector
const std::string& printer_name,
const printing::PrinterCapsAndDefaults& caps_and_defaults);
+ // Register printer from the list.
+ void RegisterPrinters(const printing::PrinterList& printers);
+
bool IsSamePrinter(const std::string& name1, const std::string& name2) const;
bool InitPrintSystem();
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/service/cloud_print/cloud_print_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698