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

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

Issue 1841543002: [Extensions] Convert APIs to use movable types [12] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_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"
11 #include "extensions/common/api/printer_provider_internal.h" 11 #include "extensions/common/api/printer_provider_internal.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 class ListValue; 15 class ListValue;
16 } 16 }
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 class Extension; 20 class Extension;
21 21
22 // Interface for observing chrome.printerProviderInternal API function calls. 22 // Interface for observing chrome.printerProviderInternal API function calls.
23 class PrinterProviderInternalAPIObserver { 23 class PrinterProviderInternalAPIObserver {
24 public: 24 public:
25 using PrinterInfoVector = 25 using PrinterInfoVector = std::vector<api::printer_provider::PrinterInfo>;
26 std::vector<linked_ptr<api::printer_provider::PrinterInfo>>;
27 26
28 // Used by chrome.printerProviderInternal API to report 27 // Used by chrome.printerProviderInternal API to report
29 // chrome.printerProvider.onGetPrintersRequested result returned by the 28 // chrome.printerProvider.onGetPrintersRequested result returned by the
30 // extension |extension|. 29 // extension |extension|.
31 // |request_id| is the request id passed to the original 30 // |request_id| is the request id passed to the original
32 // chrome.printerProvider.onGetPrintersRequested event. 31 // chrome.printerProvider.onGetPrintersRequested event.
33 virtual void OnGetPrintersResult(const Extension* extension, 32 virtual void OnGetPrintersResult(const Extension* extension,
34 int request_id, 33 int request_id,
35 const PrinterInfoVector& result) = 0; 34 const PrinterInfoVector& result) = 0;
36 35
(...skipping 26 matching lines...) Expand all
63 int request_id, 62 int request_id,
64 const api::printer_provider::PrinterInfo* printer_info) = 0; 63 const api::printer_provider::PrinterInfo* printer_info) = 0;
65 64
66 protected: 65 protected:
67 virtual ~PrinterProviderInternalAPIObserver() {} 66 virtual ~PrinterProviderInternalAPIObserver() {}
68 }; 67 };
69 68
70 } // namespace extensions 69 } // namespace extensions
71 70
72 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT ERNAL_API_OBSERVER_H_ 71 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_INTERNAL_PRINTER_PROVIDER_INT ERNAL_API_OBSERVER_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/printer_provider/printer_provider_api.cc ('k') | extensions/common/api/management.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698