| 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/extensions/wallpaper_function_base.h" | 10 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // True if need to generate thumbnail and pass to callback. | 156 // True if need to generate thumbnail and pass to callback. |
| 157 bool generate_thumbnail_; | 157 bool generate_thumbnail_; |
| 158 | 158 |
| 159 // Unique file name of the custom wallpaper. | 159 // Unique file name of the custom wallpaper. |
| 160 std::string file_name_; | 160 std::string file_name_; |
| 161 | 161 |
| 162 // Email address of logged in user. | 162 // Email address of logged in user. |
| 163 std::string email_; | 163 std::string email_; |
| 164 | 164 |
| 165 // User id hash of the logged in user. |
| 166 std::string user_id_hash_; |
| 167 |
| 165 // String representation of downloaded wallpaper. | 168 // String representation of downloaded wallpaper. |
| 166 std::string image_data_; | 169 std::string image_data_; |
| 167 | 170 |
| 168 // Sequence token associated with wallpaper operations. Shared with | 171 // Sequence token associated with wallpaper operations. Shared with |
| 169 // WallpaperManager. | 172 // WallpaperManager. |
| 170 base::SequencedWorkerPool::SequenceToken sequence_token_; | 173 base::SequencedWorkerPool::SequenceToken sequence_token_; |
| 171 }; | 174 }; |
| 172 | 175 |
| 173 class WallpaperPrivateSetCustomWallpaperLayoutFunction | 176 class WallpaperPrivateSetCustomWallpaperLayoutFunction |
| 174 : public AsyncExtensionFunction { | 177 : public AsyncExtensionFunction { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Sends the list of files to extension api caller. If no files or no | 299 // Sends the list of files to extension api caller. If no files or no |
| 297 // directory, sends empty list. | 300 // directory, sends empty list. |
| 298 void OnComplete(const std::vector<std::string>& file_list); | 301 void OnComplete(const std::vector<std::string>& file_list); |
| 299 | 302 |
| 300 // Sequence token associated with wallpaper operations. Shared with | 303 // Sequence token associated with wallpaper operations. Shared with |
| 301 // WallpaperManager. | 304 // WallpaperManager. |
| 302 base::SequencedWorkerPool::SequenceToken sequence_token_; | 305 base::SequencedWorkerPool::SequenceToken sequence_token_; |
| 303 }; | 306 }; |
| 304 | 307 |
| 305 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 308 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| OLD | NEW |