Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_DELEGATE_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 class GURL; | |
| 11 class SkBitmap; | |
| 12 struct FaviconURL; | |
| 13 | |
| 14 // This class provides a delegate interface for a FaviconDownloadHelper. It | |
| 15 // allows the FaviconDownloadHelper to pass favicon data back to its caller. | |
| 16 class FaviconDownloadHelperDelegate { | |
| 17 public: | |
| 18 // Called when the icon at |image_url| has been downloaded. | |
| 19 // |bitmaps| is a list of all the frames of the icon at |image_url|. | |
| 20 virtual void OnDidDownloadFavicon( | |
| 21 int id, | |
| 22 const GURL& image_url, | |
| 23 bool errored, | |
| 24 int requested_size, | |
| 25 const std::vector<SkBitmap>& bitmaps) = 0; | |
| 26 | |
| 27 // Message Handler. | |
| 28 virtual void OnUpdateFaviconURL( | |
| 29 int32 page_id, | |
| 30 const std::vector<FaviconURL>& candidates) = 0; | |
| 31 }; | |
|
sky
2012/10/29 23:12:48
protected virtual destructor.
Cait (Slow)
2012/10/30 18:05:55
Done.
| |
| 32 | |
| 33 #endif // CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_DELEGATE_H_ | |
| OLD | NEW |