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

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

Issue 1130933005: Remove code for showing cloud print page on plugging-in a printer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/dbus/printer_service_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 class PrinterServiceProvider 48 class PrinterServiceProvider
49 : public CrosDBusService::ServiceProviderInterface { 49 : public CrosDBusService::ServiceProviderInterface {
50 public: 50 public:
51 PrinterServiceProvider(); 51 PrinterServiceProvider();
52 ~PrinterServiceProvider() override; 52 ~PrinterServiceProvider() override;
53 53
54 // CrosDBusService::ServiceProviderInterface override. 54 // CrosDBusService::ServiceProviderInterface override.
55 void Start(scoped_refptr<dbus::ExportedObject> exported_object) override; 55 void Start(scoped_refptr<dbus::ExportedObject> exported_object) override;
56 56
57 protected:
58 virtual void ShowCloudPrintHelp(const std::string& vendor,
59 const std::string& product);
60
61 private: 57 private:
62 friend class PrinterServiceProviderAppSearchEnabledTest; 58 friend class PrinterServiceProviderAppSearchEnabledTest;
63 59
64 void SetNotificationUIManagerForTesting(NotificationUIManager* manager); 60 void SetNotificationUIManagerForTesting(NotificationUIManager* manager);
65 61
66 // Called from ExportedObject, when PrinterAdded() is exported as 62 // Called from ExportedObject, when PrinterAdded() is exported as
67 // a D-Bus method, or failed to be exported. 63 // a D-Bus method, or failed to be exported.
68 void OnExported(const std::string& interface_name, 64 void OnExported(const std::string& interface_name,
69 const std::string& method_name, 65 const std::string& method_name,
70 bool success); 66 bool success);
71 67
72 // Invoked when usb printer is detected. 68 // Invoked when usb printer is detected.
73 // Called on UI thread from dbus request. 69 // Called on UI thread from dbus request.
74 void PrinterAdded(dbus::MethodCall* method_call, 70 void PrinterAdded(dbus::MethodCall* method_call,
75 dbus::ExportedObject::ResponseSender response_sender); 71 dbus::ExportedObject::ResponseSender response_sender);
76 72
77 NotificationUIManager* notification_ui_manager_; 73 NotificationUIManager* notification_ui_manager_;
78 74
79 scoped_refptr<dbus::ExportedObject> exported_object_; 75 scoped_refptr<dbus::ExportedObject> exported_object_;
80 base::WeakPtrFactory<PrinterServiceProvider> weak_ptr_factory_; 76 base::WeakPtrFactory<PrinterServiceProvider> weak_ptr_factory_;
81 77
82 DISALLOW_COPY_AND_ASSIGN(PrinterServiceProvider); 78 DISALLOW_COPY_AND_ASSIGN(PrinterServiceProvider);
83 }; 79 };
84 80
85 } // namespace chromeos 81 } // namespace chromeos
86 82
87 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_ 83 #endif // CHROME_BROWSER_CHROMEOS_DBUS_PRINTER_SERVICE_PROVIDER_H_
88 84
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/dbus/printer_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698