OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 public: | 70 public: |
71 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getPrinters", | 71 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getPrinters", |
72 CLOUDPRINTPRIVATE_GETPRINTERS) | 72 CLOUDPRINTPRIVATE_GETPRINTERS) |
73 | 73 |
74 CloudPrintPrivateGetPrintersFunction(); | 74 CloudPrintPrivateGetPrintersFunction(); |
75 | 75 |
76 protected: | 76 protected: |
77 virtual ~CloudPrintPrivateGetPrintersFunction(); | 77 virtual ~CloudPrintPrivateGetPrintersFunction(); |
78 | 78 |
79 void CollectPrinters(); | 79 void CollectPrinters(); |
80 void ReturnResult(const base::ListValue* printers); | |
81 | 80 |
82 // ExtensionFunction: | 81 // ExtensionFunction: |
83 virtual bool RunImpl() OVERRIDE; | 82 virtual bool RunImpl() OVERRIDE; |
84 }; | 83 }; |
85 | 84 |
86 class CloudPrintPrivateGetClientIdFunction : public AsyncExtensionFunction { | 85 class CloudPrintPrivateGetClientIdFunction : public AsyncExtensionFunction { |
87 public: | 86 public: |
88 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getClientId", | 87 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getClientId", |
89 CLOUDPRINTPRIVATE_GETCLIENTID); | 88 CLOUDPRINTPRIVATE_GETCLIENTID); |
90 | 89 |
91 CloudPrintPrivateGetClientIdFunction(); | 90 CloudPrintPrivateGetClientIdFunction(); |
92 | 91 |
93 protected: | 92 protected: |
94 virtual ~CloudPrintPrivateGetClientIdFunction(); | 93 virtual ~CloudPrintPrivateGetClientIdFunction(); |
95 | 94 |
96 // ExtensionFunction: | 95 // ExtensionFunction: |
97 virtual bool RunImpl() OVERRIDE; | 96 virtual bool RunImpl() OVERRIDE; |
98 }; | 97 }; |
99 | 98 |
100 } // namespace extensions | 99 } // namespace extensions |
101 | 100 |
102 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ | 101 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ |
OLD | NEW |