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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 virtual std::vector<std::string> GetPrinters() = 0; | 30 virtual std::vector<std::string> GetPrinters() = 0; |
31 | 31 |
32 static CloudPrintTestsDelegate* instance(); | 32 static CloudPrintTestsDelegate* instance(); |
33 | 33 |
34 private: | 34 private: |
35 // Points to single instance of this class during testing. | 35 // Points to single instance of this class during testing. |
36 static CloudPrintTestsDelegate* instance_; | 36 static CloudPrintTestsDelegate* instance_; |
37 }; | 37 }; |
38 | 38 |
39 class CloudPrintPrivateSetupConnectorFunction : public AsyncExtensionFunction { | 39 class CloudPrintSetupConnectorFunction : public AsyncExtensionFunction { |
40 public: | 40 public: |
41 DECLARE_EXTENSION_FUNCTION_NAME("cloudPrintPrivate.setupConnector"); | 41 DECLARE_EXTENSION_FUNCTION_NAME("cloudPrintPrivate.setupConnector"); |
42 | 42 |
43 CloudPrintPrivateSetupConnectorFunction(); | 43 CloudPrintSetupConnectorFunction(); |
44 | 44 |
45 protected: | 45 protected: |
46 virtual ~CloudPrintPrivateSetupConnectorFunction(); | 46 virtual ~CloudPrintSetupConnectorFunction(); |
47 | 47 |
48 // ExtensionFunction: | 48 // ExtensionFunction: |
49 virtual bool RunImpl() OVERRIDE; | 49 virtual bool RunImpl() OVERRIDE; |
50 }; | 50 }; |
51 | 51 |
52 class CloudPrintPrivateGetHostNameFunction : public AsyncExtensionFunction { | 52 class CloudPrintGetHostNameFunction : public AsyncExtensionFunction { |
53 public: | 53 public: |
54 DECLARE_EXTENSION_FUNCTION_NAME("cloudPrintPrivate.getHostName"); | 54 DECLARE_EXTENSION_FUNCTION_NAME("cloudPrintPrivate.getHostName"); |
55 | 55 |
56 CloudPrintPrivateGetHostNameFunction(); | 56 CloudPrintGetHostNameFunction(); |
57 | 57 |
58 protected: | 58 protected: |
59 virtual ~CloudPrintPrivateGetHostNameFunction(); | 59 virtual ~CloudPrintGetHostNameFunction(); |
60 | 60 |
61 // ExtensionFunction: | 61 // ExtensionFunction: |
62 virtual bool RunImpl() OVERRIDE; | 62 virtual bool RunImpl() OVERRIDE; |
63 }; | 63 }; |
64 | 64 |
65 class CloudPrintPrivateGetPrintersFunction : public AsyncExtensionFunction { | 65 class CloudPrintGetPrintersFunction : public AsyncExtensionFunction { |
66 public: | 66 public: |
67 DECLARE_EXTENSION_FUNCTION_NAME("cloudPrintPrivate.getPrinters"); | 67 DECLARE_EXTENSION_FUNCTION_NAME("cloudPrintPrivate.getPrinters"); |
68 | 68 |
69 CloudPrintPrivateGetPrintersFunction(); | 69 CloudPrintGetPrintersFunction(); |
70 | 70 |
71 protected: | 71 protected: |
72 virtual ~CloudPrintPrivateGetPrintersFunction(); | 72 virtual ~CloudPrintGetPrintersFunction(); |
73 | 73 |
74 void CollectPrinters(); | 74 void CollectPrinters(); |
75 void ReturnResult(const base::ListValue* printers); | 75 void ReturnResult(const base::ListValue* printers); |
76 | 76 |
77 // ExtensionFunction: | 77 // ExtensionFunction: |
78 virtual bool RunImpl() OVERRIDE; | 78 virtual bool RunImpl() OVERRIDE; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace extensions | 81 } // namespace extensions |
82 | 82 |
83 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ |
OLD | NEW |