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

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

Issue 8510069: Make ProfileImageDownloader available to non-chromeos code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/basictypes.h"
12 #include "base/string16.h"
13
14 class Profile;
15 class ProfileDownloader;
16
17 // Reports on success or failure of Profile download. It is OK to delete the
18 // |ProfileImageDownloader| instance in any of these handlers.
19 class ProfileDownloaderDelegate {
20 public:
21 virtual ~ProfileDownloaderDelegate() {}
22
23 // Returns the desired side length of the profile image. If 0, returns image
24 // of the originally uploaded size.
25 virtual int GetDesiredImageSideLength() = 0;
26
27 // Returns the browser profile associated with this download request.
28 virtual Profile* GetBrowserProfile() = 0;
29
30 // Called when the download is complete. On success delegate should query
31 // the downloader for values.
32 virtual void OnDownloadComplete(ProfileDownloader* downloader,
33 bool success) = 0;
34 };
35
36 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698