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

Unified Diff: extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h

Issue 1148383002: Add onGetUsbPrinterInfoRequested event to printerProvider API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only include the permission granting part in this patch. 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h
diff --git a/extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h b/extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h
index 02cbacd8a620bd4bbec0b3cd4bd42b40526845d8..55e1f1985f31bf7898e6564a62e4fc609aeef943 100644
--- a/extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h
+++ b/extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h
@@ -53,6 +53,16 @@ class PrinterProviderInternalAPIObserver {
int request_id,
core_api::printer_provider_internal::PrintError error) = 0;
+ // Used by chrome.printerProviderInternal API to report
+ // chrome.printerProvider.onUsbAccessGranted result returned by the extension
+ // |extension|.
+ // |request_id| is the request id passed to the original
+ // chrome.printerProvider.onUsbAccessGranted event.
+ virtual void OnUsbAccessGrantedResult(
+ const Extension* extension,
+ int request_id,
+ const core_api::printer_provider::PrinterInfo* printer_info) = 0;
+
protected:
virtual ~PrinterProviderInternalAPIObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698