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

Side by Side Diff: chrome/browser/profiles/profile_avatar_downloader.h

Issue 222313005: [Profiles] Download high-res avatars using the --new-profile-management flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: msw comments Created 6 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4 #ifndef CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_
5 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_
6
7 #include "chrome/browser/bitmap_fetcher.h"
8
9 class ProfileInfoCache;
10
11 class ProfileAvatarDownloader : public chrome::BitmapFetcherDelegate {
12 public:
13 ProfileAvatarDownloader(size_t icon_index,
14 ProfileInfoCache* cache);
msw 2014/04/29 20:11:44 nit: move to the line above.
noms (inactive) 2014/04/29 20:29:10 Done.
15
msw 2014/04/29 20:11:44 nit: remove blank line
noms (inactive) 2014/04/29 20:29:10 Done.
16 virtual ~ProfileAvatarDownloader();
17
18 void Start();
19
20 // BitmapFetcherDelegate:
21 virtual void OnFetchComplete(const GURL url, const SkBitmap* bitmap) OVERRIDE;
22
23 private:
24 // Downloads the avatar image from a url.
25 scoped_ptr<chrome::BitmapFetcher> fetcher_;
26
27 // Index of the avatar being downloaded.
28 size_t icon_index_;
29
30 ProfileInfoCache* cache_; // Weak.
31 };
32
33 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698