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

Side by Side Diff: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.h

Issue 208653010: Use service process to collect printers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698