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

Unified Diff: chromeos/dbus/debug_daemon_client.h

Issue 2232203003: Implement a dbus client for CupsTool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert client bundle Created 4 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 | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('j') | chromeos/dbus/debug_daemon_client.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/debug_daemon_client.h
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h
index af32bdc4ce0617594d7178bdda8a9aef2e42a70e..b9810cf0fb97f8209a6a5afa3e0de6a56436df9a 100644
--- a/chromeos/dbus/debug_daemon_client.h
+++ b/chromeos/dbus/debug_daemon_client.h
@@ -209,6 +209,29 @@ class CHROMEOS_EXPORT DebugDaemonClient
const std::map<pid_t, int32_t>& pid_to_oom_score_adj,
const SetOomScoreAdjCallback& callback) = 0;
+ // A callback to handle the result of AddPrinter.
hashimoto 2016/09/12 05:20:36 nit: "the result of CupsAddPrinter."
skau 2016/09/12 17:53:56 Done.
+ using AddPrinterCallback = base::Callback<void(bool success)>;
hashimoto 2016/09/12 05:20:36 nit: CupsAddPrinterCallback should be more intuiti
skau 2016/09/12 17:53:56 Done.
+
+ // Calls CupsAddPrinter. |name| is the printer name. |uri| is the device
+ // uri. |ppd_path| is the absolute path to the PPD file. |ipp_everywhere|
+ // is true for autoconf of IPP Everywhere printers. |callback| is called
+ // after method success, |error_callback| otherwise.
hashimoto 2016/09/12 05:20:36 nit: In "|callback| is called after method success
skau 2016/09/12 17:53:56 Done.
+ virtual void CupsAddPrinter(const std::string& name,
+ const std::string& uri,
+ const std::string& ppd_path,
+ bool ipp_everywhere,
+ const AddPrinterCallback& callback,
+ const base::Closure& error_callback) = 0;
+
+ // A callback to handle the result of RemovePrinter.
hashimoto 2016/09/12 05:20:36 ditto.
skau 2016/09/12 17:53:56 Done.
+ using RemovePrinterCallback = base::Callback<void(bool success)>;
hashimoto 2016/09/12 05:20:36 ditto.
skau 2016/09/12 17:53:56 Done.
+
+ // Calls CupsRemovePrinter. |name| is the printer name as registered in
+ // CUPS. |callback| is called on success, |error_callback| otherwise.
hashimoto 2016/09/12 05:20:36 ditto.
skau 2016/09/12 17:53:56 Done.
+ virtual void CupsRemovePrinter(const std::string& name,
+ const RemovePrinterCallback& callback,
+ const base::Closure& error_callback) = 0;
+
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via DBusThreadManager::Get().
static DebugDaemonClient* Create();
« no previous file with comments | « no previous file | chromeos/dbus/debug_daemon_client.cc » ('j') | chromeos/dbus/debug_daemon_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698