Chromium Code Reviews| Index: chrome/browser/ui/webui/print_preview/print_preview_handler.h |
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h |
| index cbc6e1bf4a4063c5a80124c51187227f9734111e..55b136bf740677e8e4d1b0408a0e0c17b2290282 100644 |
| --- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h |
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h |
| @@ -124,6 +124,9 @@ class PrintPreviewHandler |
| // Starts getting all local privet printers. |arg| is unused. |
| void HandleGetPrivetPrinters(const base::ListValue* args); |
| + // Starts getting all local extension managed printers. |arg| is unused. |
| + void HandleGetExtensionPrinters(const base::ListValue* args); |
| + |
| // Stops getting all local privet printers. |arg| is unused. |
| void HandleStopGetPrivetPrinters(const base::ListValue* args); |
| @@ -196,6 +199,11 @@ class PrintPreviewHandler |
| void HandleGetPrivetPrinterCapabilities(const base::ListValue* arg); |
| + // Requests an extension managed printer's capabilities. |
| + // |arg| contains the ID of the extension from which the capabilities are |
| + // requested and the ID of the printer whose capabilities are requested. |
| + void HandleGetExtensionPrinterCapabilities(const base::ListValue* args); |
| + |
| void SendInitialSettings(const std::string& default_printer); |
| // Send OAuth2 access token. |
| @@ -282,6 +290,22 @@ class PrintPreviewHandler |
| base::DictionaryValue* printer_value); |
| #endif |
| + // Called when a list of printers is reported by an extension. |
| + // |printers|: The list of printers managed by the extension. |
| + // |done|: Whether all the extensions have reported the list of printers |
| + // they manage. |
| + void OnGotPrintersForExtension(const base::ListValue& printers, bool done); |
| + |
| + // Called when an extension reports the set of print capabilites for a |
| + // printer. |
| + // |extension_id|: The extension that manages the printer. |
| + // |printer_id|: The id of the pritner whose capabilities are reported. |
| + // |capabilities|: The printer capabilities. |
| + void OnGotExtensionPrinterCapabilities( |
| + const std::string& extension_id, |
|
Vitaly Buka (NO REVIEWS)
2015/02/03 16:55:48
why do we need to have separate extension id and p
|
| + const std::string& printer_id, |
| + const base::DictionaryValue& capabilities); |
| + |
| // Register/unregister from notifications of changes done to the GAIA |
| // cookie. |
| void RegisterForMergeSession(); |