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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.h

Issue 252653002: Rename (Chrome)SyncExtensionFunction::RunImpl to RunSync so that the RunImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bookmarks Created 6 years, 7 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
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_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/bundle_installer.h" 10 #include "chrome/browser/extensions/bundle_installer.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 public: 202 public:
203 DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher", 203 DECLARE_EXTENSION_FUNCTION("webstorePrivate.enableAppLauncher",
204 WEBSTOREPRIVATE_ENABLEAPPLAUNCHER) 204 WEBSTOREPRIVATE_ENABLEAPPLAUNCHER)
205 205
206 WebstorePrivateEnableAppLauncherFunction(); 206 WebstorePrivateEnableAppLauncherFunction();
207 207
208 protected: 208 protected:
209 virtual ~WebstorePrivateEnableAppLauncherFunction(); 209 virtual ~WebstorePrivateEnableAppLauncherFunction();
210 210
211 // ExtensionFunction: 211 // ExtensionFunction:
212 virtual bool RunImpl() OVERRIDE; 212 virtual bool RunSync() OVERRIDE;
213 }; 213 };
214 214
215 class WebstorePrivateGetBrowserLoginFunction 215 class WebstorePrivateGetBrowserLoginFunction
216 : public ChromeSyncExtensionFunction { 216 : public ChromeSyncExtensionFunction {
217 public: 217 public:
218 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getBrowserLogin", 218 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getBrowserLogin",
219 WEBSTOREPRIVATE_GETBROWSERLOGIN) 219 WEBSTOREPRIVATE_GETBROWSERLOGIN)
220 220
221 protected: 221 protected:
222 virtual ~WebstorePrivateGetBrowserLoginFunction() {} 222 virtual ~WebstorePrivateGetBrowserLoginFunction() {}
223 223
224 // ExtensionFunction: 224 // ExtensionFunction:
225 virtual bool RunImpl() OVERRIDE; 225 virtual bool RunSync() OVERRIDE;
226 }; 226 };
227 227
228 class WebstorePrivateGetStoreLoginFunction 228 class WebstorePrivateGetStoreLoginFunction
229 : public ChromeSyncExtensionFunction { 229 : public ChromeSyncExtensionFunction {
230 public: 230 public:
231 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getStoreLogin", 231 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getStoreLogin",
232 WEBSTOREPRIVATE_GETSTORELOGIN) 232 WEBSTOREPRIVATE_GETSTORELOGIN)
233 233
234 protected: 234 protected:
235 virtual ~WebstorePrivateGetStoreLoginFunction() {} 235 virtual ~WebstorePrivateGetStoreLoginFunction() {}
236 236
237 // ExtensionFunction: 237 // ExtensionFunction:
238 virtual bool RunImpl() OVERRIDE; 238 virtual bool RunSync() OVERRIDE;
239 }; 239 };
240 240
241 class WebstorePrivateSetStoreLoginFunction 241 class WebstorePrivateSetStoreLoginFunction
242 : public ChromeSyncExtensionFunction { 242 : public ChromeSyncExtensionFunction {
243 public: 243 public:
244 DECLARE_EXTENSION_FUNCTION("webstorePrivate.setStoreLogin", 244 DECLARE_EXTENSION_FUNCTION("webstorePrivate.setStoreLogin",
245 WEBSTOREPRIVATE_SETSTORELOGIN) 245 WEBSTOREPRIVATE_SETSTORELOGIN)
246 246
247 protected: 247 protected:
248 virtual ~WebstorePrivateSetStoreLoginFunction() {} 248 virtual ~WebstorePrivateSetStoreLoginFunction() {}
249 249
250 // ExtensionFunction: 250 // ExtensionFunction:
251 virtual bool RunImpl() OVERRIDE; 251 virtual bool RunSync() OVERRIDE;
252 }; 252 };
253 253
254 class WebstorePrivateGetWebGLStatusFunction 254 class WebstorePrivateGetWebGLStatusFunction
255 : public ChromeAsyncExtensionFunction { 255 : public ChromeAsyncExtensionFunction {
256 public: 256 public:
257 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getWebGLStatus", 257 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getWebGLStatus",
258 WEBSTOREPRIVATE_GETWEBGLSTATUS) 258 WEBSTOREPRIVATE_GETWEBGLSTATUS)
259 259
260 WebstorePrivateGetWebGLStatusFunction(); 260 WebstorePrivateGetWebGLStatusFunction();
261 261
(...skipping 16 matching lines...) Expand all
278 public: 278 public:
279 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getIsLauncherEnabled", 279 DECLARE_EXTENSION_FUNCTION("webstorePrivate.getIsLauncherEnabled",
280 WEBSTOREPRIVATE_GETISLAUNCHERENABLED) 280 WEBSTOREPRIVATE_GETISLAUNCHERENABLED)
281 281
282 WebstorePrivateGetIsLauncherEnabledFunction() {} 282 WebstorePrivateGetIsLauncherEnabledFunction() {}
283 283
284 protected: 284 protected:
285 virtual ~WebstorePrivateGetIsLauncherEnabledFunction() {} 285 virtual ~WebstorePrivateGetIsLauncherEnabledFunction() {}
286 286
287 // ExtensionFunction: 287 // ExtensionFunction:
288 virtual bool RunImpl() OVERRIDE; 288 virtual bool RunSync() OVERRIDE;
289 289
290 private: 290 private:
291 void OnIsLauncherCheckCompleted(bool is_enabled); 291 void OnIsLauncherCheckCompleted(bool is_enabled);
292 }; 292 };
293 293
294 class WebstorePrivateIsInIncognitoModeFunction 294 class WebstorePrivateIsInIncognitoModeFunction
295 : public ChromeSyncExtensionFunction { 295 : public ChromeSyncExtensionFunction {
296 public: 296 public:
297 DECLARE_EXTENSION_FUNCTION("webstorePrivate.isInIncognitoMode", 297 DECLARE_EXTENSION_FUNCTION("webstorePrivate.isInIncognitoMode",
298 WEBSTOREPRIVATE_ISININCOGNITOMODEFUNCTION) 298 WEBSTOREPRIVATE_ISININCOGNITOMODEFUNCTION)
299 299
300 WebstorePrivateIsInIncognitoModeFunction() {} 300 WebstorePrivateIsInIncognitoModeFunction() {}
301 301
302 protected: 302 protected:
303 virtual ~WebstorePrivateIsInIncognitoModeFunction() {} 303 virtual ~WebstorePrivateIsInIncognitoModeFunction() {}
304 304
305 // ExtensionFunction: 305 // ExtensionFunction:
306 virtual bool RunImpl() OVERRIDE; 306 virtual bool RunSync() OVERRIDE;
307 }; 307 };
308 308
309 class WebstorePrivateSignInFunction : public ChromeAsyncExtensionFunction, 309 class WebstorePrivateSignInFunction : public ChromeAsyncExtensionFunction,
310 public SigninManagerFactory::Observer, 310 public SigninManagerFactory::Observer,
311 public SigninTracker::Observer { 311 public SigninTracker::Observer {
312 public: 312 public:
313 DECLARE_EXTENSION_FUNCTION("webstorePrivate.signIn", 313 DECLARE_EXTENSION_FUNCTION("webstorePrivate.signIn",
314 WEBSTOREPRIVATE_SIGNINFUNCTION) 314 WEBSTOREPRIVATE_SIGNINFUNCTION)
315 315
316 WebstorePrivateSignInFunction(); 316 WebstorePrivateSignInFunction();
(...skipping 18 matching lines...) Expand all
335 SigninManagerBase* signin_manager_; 335 SigninManagerBase* signin_manager_;
336 336
337 // Tracks changes to sign-in state. Used to notify the page when an existing 337 // Tracks changes to sign-in state. Used to notify the page when an existing
338 // in-progress sign-in completes, either with success or failure. 338 // in-progress sign-in completes, either with success or failure.
339 scoped_ptr<SigninTracker> signin_tracker_; 339 scoped_ptr<SigninTracker> signin_tracker_;
340 }; 340 };
341 341
342 } // namespace extensions 342 } // namespace extensions
343 343
344 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _ 344 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698