Chromium Code Reviews| 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_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 "ash/desktop_background/desktop_background_controller.h" | 8 #include "ash/desktop_background/desktop_background_controller.h" |
| 9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
| 10 #include "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/user.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 std::string url_; | 127 std::string url_; |
| 128 | 128 |
| 129 // String representation of downloaded wallpaper. | 129 // String representation of downloaded wallpaper. |
| 130 std::string image_data_; | 130 std::string image_data_; |
| 131 | 131 |
| 132 // Sequence token associated with wallpaper operations. Shared with | 132 // Sequence token associated with wallpaper operations. Shared with |
| 133 // WallpaperManager. | 133 // WallpaperManager. |
| 134 base::SequencedWorkerPool::SequenceToken sequence_token_; | 134 base::SequencedWorkerPool::SequenceToken sequence_token_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 class WallpaperPrivateResetWallpaperFunction | |
| 138 : public AsyncExtensionFunction { | |
| 139 public: | |
| 140 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.resetWallpaper", | |
| 141 WALLPAPERPRIVATE_RESETWALLPAPER) | |
| 142 | |
| 143 WallpaperPrivateResetWallpaperFunction(); | |
| 144 | |
| 145 protected: | |
| 146 virtual ~WallpaperPrivateResetWallpaperFunction(); | |
| 147 | |
| 148 // AsyncExtensionFunction overrides. | |
| 149 virtual bool RunImpl() OVERRIDE; | |
|
flackr
2013/03/21 21:51:19
I think all of these classes should have DISALLOW_
bshe
2013/03/22 15:11:57
It looks like all these functions are ExtensionFun
| |
| 150 }; | |
| 151 | |
| 137 class WallpaperPrivateSetCustomWallpaperFunction | 152 class WallpaperPrivateSetCustomWallpaperFunction |
| 138 : public WallpaperFunctionBase { | 153 : public WallpaperFunctionBase { |
| 139 public: | 154 public: |
| 140 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setCustomWallpaper", | 155 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.setCustomWallpaper", |
| 141 WALLPAPERPRIVATE_SETCUSTOMWALLPAPER) | 156 WALLPAPERPRIVATE_SETCUSTOMWALLPAPER) |
| 142 | 157 |
| 143 WallpaperPrivateSetCustomWallpaperFunction(); | 158 WallpaperPrivateSetCustomWallpaperFunction(); |
| 144 | 159 |
| 145 protected: | 160 protected: |
| 146 virtual ~WallpaperPrivateSetCustomWallpaperFunction(); | 161 virtual ~WallpaperPrivateSetCustomWallpaperFunction(); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 // Sends the list of files to extension api caller. If no files or no | 320 // Sends the list of files to extension api caller. If no files or no |
| 306 // directory, sends empty list. | 321 // directory, sends empty list. |
| 307 void OnComplete(const std::vector<std::string>& file_list); | 322 void OnComplete(const std::vector<std::string>& file_list); |
| 308 | 323 |
| 309 // Sequence token associated with wallpaper operations. Shared with | 324 // Sequence token associated with wallpaper operations. Shared with |
| 310 // WallpaperManager. | 325 // WallpaperManager. |
| 311 base::SequencedWorkerPool::SequenceToken sequence_token_; | 326 base::SequencedWorkerPool::SequenceToken sequence_token_; |
| 312 }; | 327 }; |
| 313 | 328 |
| 314 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 329 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| OLD | NEW |