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

Side by Side Diff: trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.h

Issue 385483002: Probably broke Win7 Tests (dbg)(6). http://build.chromium.org/p/chromium.win/builders/Win7%20Tests%… (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | trunk/src/chrome/browser/extensions/api/gcd_private/gcd_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GCD_PRIVATE_GCD_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_
7 7
8 #include "base/memory/linked_ptr.h" 8 #include "base/memory/linked_ptr.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/chrome_extension_function.h" 10 #include "chrome/browser/extensions/chrome_extension_function.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 protected: 124 protected:
125 virtual ~GcdPrivateStartSetupFunction(); 125 virtual ~GcdPrivateStartSetupFunction();
126 126
127 // AsyncExtensionFunction overrides. 127 // AsyncExtensionFunction overrides.
128 virtual bool RunAsync() OVERRIDE; 128 virtual bool RunAsync() OVERRIDE;
129 129
130 private: 130 private:
131 }; 131 };
132 132
133 class GcdPrivateSetWiFiNetworkFunction : public ChromeAsyncExtensionFunction { 133 class GcdPrivateSetWiFiNetworksFunction : public ChromeAsyncExtensionFunction {
134 public: 134 public:
135 DECLARE_EXTENSION_FUNCTION("gcdPrivate.setWiFiNetwork", 135 DECLARE_EXTENSION_FUNCTION("gcdPrivate.setWiFiNetworks",
136 GCDPRIVATE_SETWIFINETWORK) 136 GCDPRIVATE_SETWIFINETWORKS)
137 137
138 GcdPrivateSetWiFiNetworkFunction(); 138 GcdPrivateSetWiFiNetworksFunction();
139 139
140 protected: 140 protected:
141 virtual ~GcdPrivateSetWiFiNetworkFunction(); 141 virtual ~GcdPrivateSetWiFiNetworksFunction();
142 142
143 // AsyncExtensionFunction overrides. 143 // AsyncExtensionFunction overrides.
144 virtual bool RunAsync() OVERRIDE; 144 virtual bool RunAsync() OVERRIDE;
145 145
146 private: 146 private:
147 }; 147 };
148 148
149 class GcdPrivateSetWiFiPasswordFunction : public ChromeAsyncExtensionFunction { 149 class GcdPrivateSetWiFiCredentialsFunction
150 : public ChromeAsyncExtensionFunction {
150 public: 151 public:
151 DECLARE_EXTENSION_FUNCTION("gcdPrivate.setWiFiPassword", 152 DECLARE_EXTENSION_FUNCTION("gcdPrivate.setWiFiCredentials",
152 GCDPRIVATE_SETWIFIPASSWORD) 153 GCDPRIVATE_SETWIFICREDENTIALS)
153 154
154 GcdPrivateSetWiFiPasswordFunction(); 155 GcdPrivateSetWiFiCredentialsFunction();
155 156
156 protected: 157 protected:
157 virtual ~GcdPrivateSetWiFiPasswordFunction(); 158 virtual ~GcdPrivateSetWiFiCredentialsFunction();
158 159
159 // AsyncExtensionFunction overrides. 160 // AsyncExtensionFunction overrides.
160 virtual bool RunAsync() OVERRIDE; 161 virtual bool RunAsync() OVERRIDE;
161 162
162 private: 163 private:
163 }; 164 };
164 165
165 class GcdPrivateConfirmCodeFunction : public ChromeAsyncExtensionFunction { 166 class GcdPrivateConfirmCodeFunction : public ChromeAsyncExtensionFunction {
166 public: 167 public:
167 DECLARE_EXTENSION_FUNCTION("gcdPrivate.confirmCode", GCDPRIVATE_CONFIRMCODE) 168 DECLARE_EXTENSION_FUNCTION("gcdPrivate.confirmCode", GCDPRIVATE_CONFIRMCODE)
(...skipping 17 matching lines...) Expand all
185 186
186 protected: 187 protected:
187 virtual ~GcdPrivateStopSetupFunction(); 188 virtual ~GcdPrivateStopSetupFunction();
188 189
189 // AsyncExtensionFunction overrides. 190 // AsyncExtensionFunction overrides.
190 virtual bool RunAsync() OVERRIDE; 191 virtual bool RunAsync() OVERRIDE;
191 192
192 private: 193 private:
193 }; 194 };
194 195
195 class GcdPrivateGetCommandDefinitionsFunction
196 : public ChromeAsyncExtensionFunction {
197 public:
198 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommandDefinitions",
199 GCDPRIVATE_GETCOMMANDDEFINITIONS)
200
201 GcdPrivateGetCommandDefinitionsFunction();
202
203 protected:
204 virtual ~GcdPrivateGetCommandDefinitionsFunction();
205
206 // AsyncExtensionFunction overrides.
207 virtual bool RunAsync() OVERRIDE;
208
209 private:
210 };
211
212 class GcdPrivateInsertCommandFunction : public ChromeAsyncExtensionFunction {
213 public:
214 DECLARE_EXTENSION_FUNCTION("gcdPrivate.insertCommand",
215 GCDPRIVATE_INSERTCOMMAND)
216
217 GcdPrivateInsertCommandFunction();
218
219 protected:
220 virtual ~GcdPrivateInsertCommandFunction();
221
222 // AsyncExtensionFunction overrides.
223 virtual bool RunAsync() OVERRIDE;
224
225 private:
226 };
227
228 class GcdPrivateGetCommandFunction : public ChromeAsyncExtensionFunction {
229 public:
230 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommand", GCDPRIVATE_GETCOMMAND)
231
232 GcdPrivateGetCommandFunction();
233
234 protected:
235 virtual ~GcdPrivateGetCommandFunction();
236
237 // AsyncExtensionFunction overrides.
238 virtual bool RunAsync() OVERRIDE;
239
240 private:
241 };
242
243 class GcdPrivateCancelCommandFunction : public ChromeAsyncExtensionFunction {
244 public:
245 DECLARE_EXTENSION_FUNCTION("gcdPrivate.cancelCommand",
246 GCDPRIVATE_CANCELCOMMAND)
247
248 GcdPrivateCancelCommandFunction();
249
250 protected:
251 virtual ~GcdPrivateCancelCommandFunction();
252
253 // AsyncExtensionFunction overrides.
254 virtual bool RunAsync() OVERRIDE;
255
256 private:
257 };
258
259 class GcdPrivateGetCommandsListFunction : public ChromeAsyncExtensionFunction {
260 public:
261 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommandsList",
262 GCDPRIVATE_GETCOMMANDSLIST)
263
264 GcdPrivateGetCommandsListFunction();
265
266 protected:
267 virtual ~GcdPrivateGetCommandsListFunction();
268
269 // AsyncExtensionFunction overrides.
270 virtual bool RunAsync() OVERRIDE;
271
272 private:
273 };
274
275 } // namespace extensions 196 } // namespace extensions
276 197
277 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ 198 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698