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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_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_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
7 7
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" 9 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h"
10 #include "chrome/common/extensions/api/wallpaper_private.h" 10 #include "chrome/common/extensions/api/wallpaper_private.h"
11 #include "net/url_request/url_fetcher_delegate.h" 11 #include "net/url_request/url_fetcher_delegate.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 class UserImage; 14 class UserImage;
15 } // namespace chromeos 15 } // namespace chromeos
16 16
17 // Wallpaper manager strings. 17 // Wallpaper manager strings.
18 class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction { 18 class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction {
19 public: 19 public:
20 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getStrings", 20 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getStrings",
21 WALLPAPERPRIVATE_GETSTRINGS) 21 WALLPAPERPRIVATE_GETSTRINGS)
22 22
23 protected: 23 protected:
24 virtual ~WallpaperPrivateGetStringsFunction() {} 24 virtual ~WallpaperPrivateGetStringsFunction() {}
25 25
26 // SyncExtensionFunction overrides. 26 // SyncExtensionFunction overrides.
27 virtual bool RunImpl() OVERRIDE; 27 virtual bool RunSync() OVERRIDE;
28 }; 28 };
29 29
30 class WallpaperPrivateSetWallpaperIfExistsFunction 30 class WallpaperPrivateSetWallpaperIfExistsFunction
31 : public WallpaperFunctionBase { 31 : public WallpaperFunctionBase {
32 public: 32 public:
33 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setWallpaperIfExists", 33 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setWallpaperIfExists",
34 WALLPAPERPRIVATE_SETWALLPAPERIFEXISTS) 34 WALLPAPERPRIVATE_SETWALLPAPERIFEXISTS)
35 35
36 WallpaperPrivateSetWallpaperIfExistsFunction(); 36 WallpaperPrivateSetWallpaperIfExistsFunction();
37 37
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Sends the list of files to extension api caller. If no files or no 279 // Sends the list of files to extension api caller. If no files or no
280 // directory, sends empty list. 280 // directory, sends empty list.
281 void OnComplete(const std::vector<std::string>& file_list); 281 void OnComplete(const std::vector<std::string>& file_list);
282 282
283 // Sequence token associated with wallpaper operations. Shared with 283 // Sequence token associated with wallpaper operations. Shared with
284 // WallpaperManager. 284 // WallpaperManager.
285 base::SequencedWorkerPool::SequenceToken sequence_token_; 285 base::SequencedWorkerPool::SequenceToken sequence_token_;
286 }; 286 };
287 287
288 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ 288 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/input_method_api.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698