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

Side by Side Diff: chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use Polymer where relevant. Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // * Changes to User objects and local state are performed on the thread that 79 // * Changes to User objects and local state are performed on the thread that
80 // |this| runs on. 80 // |this| runs on.
81 // * File writes and deletions are performed via |background_task_runner_|. 81 // * File writes and deletions are performed via |background_task_runner_|.
82 // 82 //
83 // With the above, it is guaranteed that any changes made by a canceled Job 83 // With the above, it is guaranteed that any changes made by a canceled Job
84 // cannot race against against changes made by the superseding Job. 84 // cannot race against against changes made by the superseding Job.
85 class Job; 85 class Job;
86 86
87 // ProfileDownloaderDelegate: 87 // ProfileDownloaderDelegate:
88 bool NeedsProfilePicture() const override; 88 bool NeedsProfilePicture() const override;
89 int GetDesiredImageSideLength() const override; 89 unsigned int GetDesiredImageSideLength() const override;
90 Profile* GetBrowserProfile() override; 90 Profile* GetBrowserProfile() override;
91 std::string GetCachedPictureURL() const override; 91 std::string GetCachedPictureURL() const override;
92 bool IsPreSignin() const override; 92 bool IsPreSignin() const override;
93 void OnProfileDownloadSuccess(ProfileDownloader* downloader) override; 93 void OnProfileDownloadSuccess(ProfileDownloader* downloader) override;
94 void OnProfileDownloadFailure( 94 void OnProfileDownloadFailure(
95 ProfileDownloader* downloader, 95 ProfileDownloader* downloader,
96 ProfileDownloaderDelegate::FailureReason reason) override; 96 ProfileDownloaderDelegate::FailureReason reason) override;
97 97
98 // Returns true if the user image for the user is managed by 98 // Returns true if the user image for the user is managed by
99 // policy and the user is not allowed to change it. 99 // policy and the user is not allowed to change it.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 bool user_needs_migration_; 219 bool user_needs_migration_;
220 220
221 base::WeakPtrFactory<UserImageManagerImpl> weak_factory_; 221 base::WeakPtrFactory<UserImageManagerImpl> weak_factory_;
222 222
223 DISALLOW_COPY_AND_ASSIGN(UserImageManagerImpl); 223 DISALLOW_COPY_AND_ASSIGN(UserImageManagerImpl);
224 }; 224 };
225 225
226 } // namespace chromeos 226 } // namespace chromeos
227 227
228 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ 228 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698