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

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.h

Issue 10667034: [cros] Cache the URL of user's G+ profile photo to prevent redundant downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/user_image.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager_impl.h
diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h
index 15c657f1c8b58e881defb3a86cf6ffb905f5393d..56df303d6aac526e5cb2c6cebe4a550691ff9e04 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.h
+++ b/chrome/browser/chromeos/login/user_manager_impl.h
@@ -180,6 +180,7 @@ class UserManagerImpl : public UserManager,
// If |image| is empty, sets a stub image for the user.
void SetUserImage(const std::string& username,
int image_index,
+ const GURL& image_url,
const UserImage& user_image);
void GetUserWallpaperProperties(const std::string& username,
@@ -193,6 +194,7 @@ class UserManagerImpl : public UserManager,
// and sends LOGIN_USER_IMAGE_CHANGED notification.
void SaveUserImageInternal(const std::string& username,
int image_index,
+ const GURL& image_url,
const UserImage& user_image);
// Saves wallpaper to file, post task to generate thumbnail and updates local
@@ -228,7 +230,8 @@ class UserManagerImpl : public UserManager,
void SaveImageToFile(const std::string& username,
const UserImage& user_image,
const FilePath& image_path,
- int image_index);
+ int image_index,
+ const GURL& image_url);
// Saves wallpaper to file with specified path. Runs on FILE thread. Posts
// task for saving wallpaper info to Local State on UI thread.
@@ -244,6 +247,7 @@ class UserManagerImpl : public UserManager,
void SaveImageToLocalState(const std::string& username,
const std::string& image_path,
int image_index,
+ const GURL& image_url,
bool is_async);
// Stores layout and type preference in local state. Runs on UI thread.
@@ -355,6 +359,9 @@ class UserManagerImpl : public UserManager,
// Data URL for |downloaded_profile_image_|.
std::string downloaded_profile_image_data_url_;
+ // Original URL of |downloaded_profile_image_|, from which it was downloaded.
+ GURL profile_image_url_;
+
DISALLOW_COPY_AND_ASSIGN(UserManagerImpl);
};
« no previous file with comments | « chrome/browser/chromeos/login/user_image.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698