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

Side by Side Diff: chrome/browser/chromeos/dbus/printer_service_provider.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // 2. Go back to ChromeOS and check if new tab with information is opened. 44 // 2. Go back to ChromeOS and check if new tab with information is opened.
45 45
46 class PrinterServiceProvider 46 class PrinterServiceProvider
47 : public CrosDBusService::ServiceProviderInterface { 47 : public CrosDBusService::ServiceProviderInterface {
48 public: 48 public:
49 PrinterServiceProvider(); 49 PrinterServiceProvider();
50 virtual ~PrinterServiceProvider(); 50 virtual ~PrinterServiceProvider();
51 51
52 // CrosDBusService::ServiceProviderInterface override. 52 // CrosDBusService::ServiceProviderInterface override.
53 virtual void Start( 53 virtual void Start(
54 scoped_refptr<dbus::ExportedObject> exported_object) OVERRIDE; 54 scoped_refptr<dbus::ExportedObject> exported_object) override;
55 55
56 protected: 56 protected:
57 virtual void ShowCloudPrintHelp(const std::string& vendor, 57 virtual void ShowCloudPrintHelp(const std::string& vendor,
58 const std::string& product); 58 const std::string& product);
59 59
60 private: 60 private:
61 // Called from ExportedObject, when PrinterAdded() is exported as 61 // Called from ExportedObject, when PrinterAdded() is exported as
62 // a D-Bus method, or failed to be exported. 62 // a D-Bus method, or failed to be exported.
63 void OnExported(const std::string& interface_name, 63 void OnExported(const std::string& interface_name,
64 const std::string& method_name, 64 const std::string& method_name,
65 bool success); 65 bool success);
66 66
67 // Invoked when usb printer is detected. 67 // Invoked when usb printer is detected.
68 // Called on UI thread from dbus request. 68 // Called on UI thread from dbus request.
69 void PrinterAdded(dbus::MethodCall* method_call, 69 void PrinterAdded(dbus::MethodCall* method_call,
70 dbus::ExportedObject::ResponseSender response_sender); 70 dbus::ExportedObject::ResponseSender response_sender);
71 71
72 scoped_refptr<dbus::ExportedObject> exported_object_; 72 scoped_refptr<dbus::ExportedObject> exported_object_;
73 base::WeakPtrFactory<PrinterServiceProvider> weak_ptr_factory_; 73 base::WeakPtrFactory<PrinterServiceProvider> weak_ptr_factory_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(PrinterServiceProvider); 75 DISALLOW_COPY_AND_ASSIGN(PrinterServiceProvider);
76 }; 76 };
77 77
78 } // namespace chromeos 78 } // namespace chromeos
79 79
80 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_ 80 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_
81 81
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698