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

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

Issue 900503002: List printers managed by extensions in print preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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 | « extensions/browser/api/printer_provider_internal/printer_provider_internal_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 86337aa537863a7cf56adb6177531ddae98df161..02cbacd8a620bd4bbec0b3cd4bd42b40526845d8 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
@@ -5,6 +5,9 @@
#ifndef EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERNAL_API_OBSERVER_H_
#define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERNAL_API_OBSERVER_H_
+#include <vector>
+
+#include "extensions/common/api/printer_provider.h"
#include "extensions/common/api/printer_provider_internal.h"
namespace base {
@@ -19,6 +22,9 @@ class Extension;
// Interface for observing chrome.printerProviderInternal API function calls.
class PrinterProviderInternalAPIObserver {
public:
+ using PrinterInfoVector =
+ std::vector<linked_ptr<core_api::printer_provider::PrinterInfo>>;
+
// Used by chrome.printerProviderInternal API to report
// chrome.printerProvider.onGetPrintersRequested result returned by the
// extension |extension|.
@@ -26,7 +32,7 @@ class PrinterProviderInternalAPIObserver {
// chrome.printerProvider.onGetPrintersRequested event.
virtual void OnGetPrintersResult(const Extension* extension,
int request_id,
- const base::ListValue& result) = 0;
+ const PrinterInfoVector& result) = 0;
// Used by chrome.printerProviderInternal API to report
// chrome.printerProvider.onGetCapabilityRequested result returned by the
« no previous file with comments | « extensions/browser/api/printer_provider_internal/printer_provider_internal_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698