OLD | NEW |
---|---|
(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 size of the profile image. | |
24 virtual int GetDesiredImageSize() = 0; | |
25 | |
26 // Returns the browser profile associated with this download request. | |
27 virtual Profile* GetBrowserProfile() = 0; | |
28 | |
29 // Called when the download is complete. On success delegate should query | |
30 // the downloader for values. | |
31 virtual void OnDownloadComplete(ProfileDownloader* downloader, | |
Ivan Korotkov
2011/11/17 08:37:12
Are you planning this for a situation when there m
sail
2011/11/21 22:01:00
On Chrome there will definitely be multiple downlo
| |
32 bool success) = 0; | |
33 }; | |
34 | |
35 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ | |
OLD | NEW |