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

Side by Side Diff: extensions/browser/api/printer_provider_internal/printer_provider_internal_api.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN AL_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN AL_API_H_
6 #define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN AL_API_H_ 6 #define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN AL_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "extensions/browser/api/printer_provider_internal/printer_provider_inte rnal_api_observer.h" 10 #include "extensions/browser/api/printer_provider_internal/printer_provider_inte rnal_api_observer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 private: 43 private:
44 friend class BrowserContextKeyedAPIFactory<PrinterProviderInternalAPI>; 44 friend class BrowserContextKeyedAPIFactory<PrinterProviderInternalAPI>;
45 friend class PrinterProviderInternalReportPrintersFunction; 45 friend class PrinterProviderInternalReportPrintersFunction;
46 friend class PrinterProviderInternalReportPrinterCapabilityFunction; 46 friend class PrinterProviderInternalReportPrinterCapabilityFunction;
47 friend class PrinterProviderInternalReportPrintResultFunction; 47 friend class PrinterProviderInternalReportPrintResultFunction;
48 48
49 // Notifies observers that a printerProvider.onGetPrintersRequested callback 49 // Notifies observers that a printerProvider.onGetPrintersRequested callback
50 // has been called. Called from 50 // has been called. Called from
51 // |PrinterProviderInternalReportPrintersFunction|. 51 // |PrinterProviderInternalReportPrintersFunction|.
52 void NotifyGetPrintersResult(const Extension* extension, 52 void NotifyGetPrintersResult(
53 int request_id, 53 const Extension* extension,
54 const base::ListValue& printers); 54 int request_id,
55 const PrinterProviderInternalAPIObserver::PrinterInfoVector& printers);
55 56
56 // Notifies observers that a printerProvider.onGetCapabilityRequested callback 57 // Notifies observers that a printerProvider.onGetCapabilityRequested callback
57 // has been called. Called from 58 // has been called. Called from
58 // |PrinterProviderInternalReportPrinterCapabilityFunction|. 59 // |PrinterProviderInternalReportPrinterCapabilityFunction|.
59 void NotifyGetCapabilityResult(const Extension* extension, 60 void NotifyGetCapabilityResult(const Extension* extension,
60 int request_id, 61 int request_id,
61 const base::DictionaryValue& capability); 62 const base::DictionaryValue& capability);
62 63
63 // Notifies observers that a printerProvider.onPrintRequested callback has 64 // Notifies observers that a printerProvider.onPrintRequested callback has
64 // been called. Called from 65 // been called. Called from
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 private: 123 private:
123 DECLARE_EXTENSION_FUNCTION("printerProviderInternal.reportPrinters", 124 DECLARE_EXTENSION_FUNCTION("printerProviderInternal.reportPrinters",
124 PRINTERPROVIDERINTERNAL_REPORTPRINTERS) 125 PRINTERPROVIDERINTERNAL_REPORTPRINTERS)
125 126
126 DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalReportPrintersFunction); 127 DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalReportPrintersFunction);
127 }; 128 };
128 129
129 } // namespace extensions 130 } // namespace extensions
130 131
131 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT ERNAL_API_H_ 132 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT ERNAL_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698