| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 : public ChromeAsyncExtensionFunction { | 80 : public ChromeAsyncExtensionFunction { |
| 81 public: | 81 public: |
| 82 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getPrinters", | 82 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getPrinters", |
| 83 CLOUDPRINTPRIVATE_GETPRINTERS) | 83 CLOUDPRINTPRIVATE_GETPRINTERS) |
| 84 | 84 |
| 85 CloudPrintPrivateGetPrintersFunction(); | 85 CloudPrintPrivateGetPrintersFunction(); |
| 86 | 86 |
| 87 protected: | 87 protected: |
| 88 virtual ~CloudPrintPrivateGetPrintersFunction(); | 88 virtual ~CloudPrintPrivateGetPrintersFunction(); |
| 89 | 89 |
| 90 void CollectPrinters(); | 90 private: |
| 91 void SendResults(const std::vector<std::string>& printers); |
| 91 | 92 |
| 92 // ExtensionFunction: | 93 // ExtensionFunction: |
| 93 virtual bool RunImpl() OVERRIDE; | 94 virtual bool RunImpl() OVERRIDE; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 class CloudPrintPrivateGetClientIdFunction | 97 class CloudPrintPrivateGetClientIdFunction |
| 97 : public ChromeAsyncExtensionFunction { | 98 : public ChromeAsyncExtensionFunction { |
| 98 public: | 99 public: |
| 99 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getClientId", | 100 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getClientId", |
| 100 CLOUDPRINTPRIVATE_GETCLIENTID); | 101 CLOUDPRINTPRIVATE_GETCLIENTID); |
| 101 | 102 |
| 102 CloudPrintPrivateGetClientIdFunction(); | 103 CloudPrintPrivateGetClientIdFunction(); |
| 103 | 104 |
| 104 protected: | 105 protected: |
| 105 virtual ~CloudPrintPrivateGetClientIdFunction(); | 106 virtual ~CloudPrintPrivateGetClientIdFunction(); |
| 106 | 107 |
| 107 // ExtensionFunction: | 108 // ExtensionFunction: |
| 108 virtual bool RunImpl() OVERRIDE; | 109 virtual bool RunImpl() OVERRIDE; |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace extensions | 112 } // namespace extensions |
| 112 | 113 |
| 113 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ |
| OLD | NEW |