OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
12 | 11 |
13 class Profile; | 12 class Profile; |
14 class ProfileDownloader; | 13 class ProfileDownloader; |
15 | 14 |
16 // Reports on success or failure of Profile download. It is OK to delete the | 15 // Reports on success or failure of Profile download. It is OK to delete the |
17 // |ProfileImageDownloader| instance in any of these handlers. | 16 // |ProfileImageDownloader| instance in any of these handlers. |
18 class ProfileDownloaderDelegate { | 17 class ProfileDownloaderDelegate { |
19 public: | 18 public: |
20 // Error codes passed to OnProfileDownloadFailure. | 19 // Error codes passed to OnProfileDownloadFailure. |
(...skipping 30 matching lines...) Expand all Loading... |
51 // query the downloader for the picture and full name. | 50 // query the downloader for the picture and full name. |
52 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) = 0; | 51 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) = 0; |
53 | 52 |
54 // Called when the profile download has failed. | 53 // Called when the profile download has failed. |
55 virtual void OnProfileDownloadFailure( | 54 virtual void OnProfileDownloadFailure( |
56 ProfileDownloader* downloader, | 55 ProfileDownloader* downloader, |
57 ProfileDownloaderDelegate::FailureReason reason) = 0; | 56 ProfileDownloaderDelegate::FailureReason reason) = 0; |
58 }; | 57 }; |
59 | 58 |
60 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ | 59 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ |
OLD | NEW |