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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 23480087: Use username_hash instead of email (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 "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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/wallpaper_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