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

Side by Side Diff: extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // |PrinterProviderInternalReportPrinterCapabilityFunction|. 67 // |PrinterProviderInternalReportPrinterCapabilityFunction|.
68 void NotifyGetCapabilityResult(const Extension* extension, 68 void NotifyGetCapabilityResult(const Extension* extension,
69 int request_id, 69 int request_id,
70 const base::DictionaryValue& capability); 70 const base::DictionaryValue& capability);
71 71
72 // Notifies observers that a printerProvider.onPrintRequested callback has 72 // Notifies observers that a printerProvider.onPrintRequested callback has
73 // been called. Called from 73 // been called. Called from
74 // |PrinterProviderInternalReportPrintResultFunction|. 74 // |PrinterProviderInternalReportPrintResultFunction|.
75 void NotifyPrintResult(const Extension* extension, 75 void NotifyPrintResult(const Extension* extension,
76 int request_id, 76 int request_id,
77 core_api::printer_provider_internal::PrintError error); 77 api::printer_provider_internal::PrintError error);
78 78
79 // Notifies observers that a printerProvider.onGetUsbPrinterInfoRequested 79 // Notifies observers that a printerProvider.onGetUsbPrinterInfoRequested
80 // callback has been called. Called from 80 // callback has been called. Called from
81 // |PrinterProviderInternalReportUsbPrinterInfoFunction|. 81 // |PrinterProviderInternalReportUsbPrinterInfoFunction|.
82 void NotifyGetUsbPrinterInfoResult( 82 void NotifyGetUsbPrinterInfoResult(
83 const Extension* extension, 83 const Extension* extension,
84 int request_id, 84 int request_id,
85 const core_api::printer_provider::PrinterInfo* printer_info); 85 const api::printer_provider::PrinterInfo* printer_info);
86 86
87 base::ObserverList<PrinterProviderInternalAPIObserver> observers_; 87 base::ObserverList<PrinterProviderInternalAPIObserver> observers_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalAPI); 89 DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalAPI);
90 }; 90 };
91 91
92 class PrinterProviderInternalReportPrintResultFunction 92 class PrinterProviderInternalReportPrintResultFunction
93 : public UIThreadExtensionFunction { 93 : public UIThreadExtensionFunction {
94 public: 94 public:
95 PrinterProviderInternalReportPrintResultFunction(); 95 PrinterProviderInternalReportPrintResultFunction();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 private: 172 private:
173 DECLARE_EXTENSION_FUNCTION("printerProviderInternal.reportUsbPrinterInfo", 173 DECLARE_EXTENSION_FUNCTION("printerProviderInternal.reportUsbPrinterInfo",
174 PRINTERPROVIDERINTERNAL_REPORTUSBPRINTERINFO) 174 PRINTERPROVIDERINTERNAL_REPORTUSBPRINTERINFO)
175 175
176 DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalReportUsbPrinterInfoFunction); 176 DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalReportUsbPrinterInfoFunction);
177 }; 177 };
178 178
179 } // namespace extensions 179 } // namespace extensions
180 180
181 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT ERNAL_API_H_ 181 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT ERNAL_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698