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

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

Issue 8549032: Add OVERRIDE to chrome/service/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 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 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_CLOUD_PRINT_CONNECTOR_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 bool IsRunning(); 46 bool IsRunning();
47 47
48 // Register printer from the list. 48 // Register printer from the list.
49 void RegisterPrinters(const printing::PrinterList& printers); 49 void RegisterPrinters(const printing::PrinterList& printers);
50 50
51 // Check for jobs for specific printer. If printer id is empty 51 // Check for jobs for specific printer. If printer id is empty
52 // jobs will be checked for all available printers. 52 // jobs will be checked for all available printers.
53 void CheckForJobs(const std::string& reason, const std::string& printer_id); 53 void CheckForJobs(const std::string& reason, const std::string& printer_id);
54 54
55 // cloud_print::PrintServerWatcherDelegate implementation 55 // cloud_print::PrintServerWatcherDelegate implementation
56 virtual void OnPrinterAdded(); 56 virtual void OnPrinterAdded() OVERRIDE;
57 // PrinterJobHandler::Delegate implementation 57 // PrinterJobHandler::Delegate implementation
58 virtual void OnPrinterDeleted(const std::string& printer_name); 58 virtual void OnPrinterDeleted(const std::string& printer_name) OVERRIDE;
59 virtual void OnAuthError(); 59 virtual void OnAuthError() OVERRIDE;
60 60
61 // CloudPrintURLFetcher::Delegate implementation. 61 // CloudPrintURLFetcher::Delegate implementation.
62 virtual CloudPrintURLFetcher::ResponseAction HandleRawData( 62 virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
63 const content::URLFetcher* source, 63 const content::URLFetcher* source,
64 const GURL& url, 64 const GURL& url,
65 const std::string& data); 65 const std::string& data) OVERRIDE;
66 66
67 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( 67 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
68 const content::URLFetcher* source, 68 const content::URLFetcher* source,
69 const GURL& url, 69 const GURL& url,
70 base::DictionaryValue* json_data, 70 base::DictionaryValue* json_data,
71 bool succeeded); 71 bool succeeded) OVERRIDE;
72 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError(); 72 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
73 virtual std::string GetAuthHeader(); 73 virtual std::string GetAuthHeader() OVERRIDE;
74 74
75 private: 75 private:
76 // Prototype for a response handler. 76 // Prototype for a response handler.
77 typedef CloudPrintURLFetcher::ResponseAction 77 typedef CloudPrintURLFetcher::ResponseAction
78 (CloudPrintConnector::*ResponseHandler)( 78 (CloudPrintConnector::*ResponseHandler)(
79 const content::URLFetcher* source, 79 const content::URLFetcher* source,
80 const GURL& url, 80 const GURL& url,
81 DictionaryValue* json_data, 81 DictionaryValue* json_data,
82 bool succeeded); 82 bool succeeded);
83 83
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // The CloudPrintURLFetcher instance for the current request. 178 // The CloudPrintURLFetcher instance for the current request.
179 scoped_refptr<CloudPrintURLFetcher> request_; 179 scoped_refptr<CloudPrintURLFetcher> request_;
180 // The CloudPrintURLFetcher instance for the user message request. 180 // The CloudPrintURLFetcher instance for the user message request.
181 scoped_refptr<CloudPrintURLFetcher> user_message_request_; 181 scoped_refptr<CloudPrintURLFetcher> user_message_request_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector); 183 DISALLOW_COPY_AND_ASSIGN(CloudPrintConnector);
184 }; 184 };
185 185
186 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_ 186 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_CONNECTOR_H_
187 187
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_auth.h ('k') | chrome/service/cloud_print/cloud_print_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698