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

Unified Diff: chrome/browser/chromeos/login/user_image.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.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_image.h
diff --git a/chrome/browser/chromeos/login/user_image.h b/chrome/browser/chromeos/login/user_image.h
index 97bedc5488628cb1846478bec6784727f4c5c4e0..e6242eff7377d6884270016f615f0d5f31c7911d 100644
--- a/chrome/browser/chromeos/login/user_image.h
+++ b/chrome/browser/chromeos/login/user_image.h
@@ -8,6 +8,7 @@
#include <vector>
+#include "googleurl/src/gurl.h"
#include "ui/gfx/image/image_skia.h"
namespace chromeos {
@@ -45,12 +46,17 @@ class UserImage {
bool has_animated_image() const { return has_animated_image_; }
const RawImage& animated_image() const { return animated_image_; }
+ // URL from which this image was originally downloaded, if any.
+ void set_url(const GURL& url) { url_ = url; }
+ GURL url() const { return url_; }
+
private:
gfx::ImageSkia image_;
bool has_raw_image_;
RawImage raw_image_;
bool has_animated_image_;
RawImage animated_image_;
+ GURL url_;
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/user.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698