| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual int GetDesiredImageSideLength() const = 0; | 25 virtual int GetDesiredImageSideLength() const = 0; |
| 26 | 26 |
| 27 // Returns the cached URL. If the cache URL matches the new image URL | 27 // Returns the cached URL. If the cache URL matches the new image URL |
| 28 // the image will not be downloaded. Return an empty string when there is no | 28 // the image will not be downloaded. Return an empty string when there is no |
| 29 // cached URL. | 29 // cached URL. |
| 30 virtual std::string GetCachedPictureURL() const = 0; | 30 virtual std::string GetCachedPictureURL() const = 0; |
| 31 | 31 |
| 32 // Returns the browser profile associated with this download request. | 32 // Returns the browser profile associated with this download request. |
| 33 virtual Profile* GetBrowserProfile() = 0; | 33 virtual Profile* GetBrowserProfile() = 0; |
| 34 | 34 |
| 35 // Whether we should use an OAuth refresh token or the Picasa token from | |
| 36 // ClientLogin. The latter is currently used in ChromeOS. | |
| 37 virtual bool ShouldUseOAuthRefreshToken() const = 0; | |
| 38 | |
| 39 // Called when the download is complete. On success delegate should query | 35 // Called when the download is complete. On success delegate should query |
| 40 // the downloader for values. | 36 // the downloader for values. |
| 41 virtual void OnDownloadComplete(ProfileDownloader* downloader, | 37 virtual void OnDownloadComplete(ProfileDownloader* downloader, |
| 42 bool success) = 0; | 38 bool success) = 0; |
| 43 }; | 39 }; |
| 44 | 40 |
| 45 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ | 41 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ |
| OLD | NEW |