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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.h

Issue 668093002: Standardize usage of virtual/override/final in chrome/browser/printing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
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_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 namespace cloud_print { 25 namespace cloud_print {
26 struct CloudPrintProxyInfo; 26 struct CloudPrintProxyInfo;
27 } // namespace cloud_print 27 } // namespace cloud_print
28 28
29 // Layer between the browser user interface and the cloud print proxy code 29 // Layer between the browser user interface and the cloud print proxy code
30 // running in the service process. 30 // running in the service process.
31 class CloudPrintProxyService : public KeyedService { 31 class CloudPrintProxyService : public KeyedService {
32 public: 32 public:
33 explicit CloudPrintProxyService(Profile* profile); 33 explicit CloudPrintProxyService(Profile* profile);
34 virtual ~CloudPrintProxyService(); 34 ~CloudPrintProxyService() override;
35 35
36 typedef base::Callback<void(const std::vector<std::string>&)> 36 typedef base::Callback<void(const std::vector<std::string>&)>
37 PrintersCallback; 37 PrintersCallback;
38 38
39 // Initializes the object. This should be called every time an object of this 39 // Initializes the object. This should be called every time an object of this
40 // class is constructed. 40 // class is constructed.
41 void Initialize(); 41 void Initialize();
42 42
43 // Returns list of printer names available for registration. 43 // Returns list of printer names available for registration.
44 void GetPrinters(const PrintersCallback& callback); 44 void GetPrinters(const PrintersCallback& callback);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // If set, continue trying to disable the connector, and quit the process 102 // If set, continue trying to disable the connector, and quit the process
103 // once successful. 103 // once successful.
104 bool enforcing_connector_policy_; 104 bool enforcing_connector_policy_;
105 105
106 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_; 106 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); 108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService);
109 }; 109 };
110 110
111 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 111 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698