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_LOGIN_USER_IMAGE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/user.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 | 74 |
| 75 // Returns the result of the last successful profile image download, if any. | 75 // Returns the result of the last successful profile image download, if any. |
| 76 // Otherwise, returns an empty bitmap. | 76 // Otherwise, returns an empty bitmap. |
| 77 virtual const gfx::ImageSkia& DownloadedProfileImage() const = 0; | 77 virtual const gfx::ImageSkia& DownloadedProfileImage() const = 0; |
| 78 | 78 |
| 79 // Returns sync observer attached to current user. Returns NULL if current | 79 // Returns sync observer attached to current user. Returns NULL if current |
| 80 // user can't sync images or user is not logged in. | 80 // user can't sync images or user is not logged in. |
| 81 virtual UserImageSyncObserver* GetSyncObserver() const = 0; | 81 virtual UserImageSyncObserver* GetSyncObserver() const = 0; |
| 82 | 82 |
| 83 // Unregisters preference observers before browser process shutdown. | 83 // Unregisters preference observers before browser process shutdown. |
| 84 // Also cancel any profile image download in progress. | |
|
stevenjb
2013/08/30 17:55:06
nit: cancels
| |
| 84 virtual void Shutdown() = 0; | 85 virtual void Shutdown() = 0; |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace chromeos | 88 } // namespace chromeos |
| 88 | 89 |
| 89 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ |
| OLD | NEW |