| OLD | NEW |
| 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_OBSERVER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN
AL_API_OBSERVER_H_ |
| 6 #define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN
AL_API_OBSERVER_H_ | 6 #define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INTERN
AL_API_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "extensions/common/api/printer_provider.h" | 10 #include "extensions/common/api/printer_provider.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Used by chrome.printerProviderInternal API to report | 46 // Used by chrome.printerProviderInternal API to report |
| 47 // chrome.printerProvider.onPrintRequested result returned by the extension | 47 // chrome.printerProvider.onPrintRequested result returned by the extension |
| 48 // |extension|. | 48 // |extension|. |
| 49 // |request_id| is the request id passed to the original | 49 // |request_id| is the request id passed to the original |
| 50 // chrome.printerProvider.onPrintRequested event. | 50 // chrome.printerProvider.onPrintRequested event. |
| 51 virtual void OnPrintResult( | 51 virtual void OnPrintResult( |
| 52 const Extension* extension, | 52 const Extension* extension, |
| 53 int request_id, | 53 int request_id, |
| 54 core_api::printer_provider_internal::PrintError error) = 0; | 54 core_api::printer_provider_internal::PrintError error) = 0; |
| 55 | 55 |
| 56 // Used by chrome.printerProviderInternal API to report |
| 57 // chrome.printerProvider.onGetUsbPrinterInfoRequested result returned by the |
| 58 // extension |extension|. |
| 59 // |request_id| is the request id passed to the original |
| 60 // chrome.printerProvider.onGetUsbPrinterInfoRequested event. |
| 61 virtual void OnGetUsbPrinterInfoResult( |
| 62 const Extension* extension, |
| 63 int request_id, |
| 64 const core_api::printer_provider::PrinterInfo* printer_info) = 0; |
| 65 |
| 56 protected: | 66 protected: |
| 57 virtual ~PrinterProviderInternalAPIObserver() {} | 67 virtual ~PrinterProviderInternalAPIObserver() {} |
| 58 }; | 68 }; |
| 59 | 69 |
| 60 } // namespace extensions | 70 } // namespace extensions |
| 61 | 71 |
| 62 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT
ERNAL_API_OBSERVER_H_ | 72 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT
ERNAL_API_OBSERVER_H_ |
| OLD | NEW |