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

Side by Side Diff: chrome/browser/favicon/favicon_download_helper_delegate.h

Issue 11411180: move favicon download code from chrome/ into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix order Created 8 years 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
OLDNEW
(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 #include "base/basictypes.h"
11
12 class GURL;
13 class SkBitmap;
14 struct FaviconURL;
15
16 // This class provides a delegate interface for a FaviconDownloadHelper. It
17 // allows the FaviconDownloadHelper to pass favicon data back to its caller.
18 class FaviconDownloadHelperDelegate {
19 public:
20 // Called when the icon at |image_url| has been downloaded.
21 // |bitmaps| is a list of all the frames of the icon at |image_url|.
22 virtual void OnDidDownloadFavicon(
23 int id,
24 const GURL& image_url,
25 bool errored,
26 int requested_size,
27 const std::vector<SkBitmap>& bitmaps) {}
28
29 // Message Handler.
30 virtual void OnUpdateFaviconURL(
31 int32 page_id,
32 const std::vector<FaviconURL>& candidates) {}
33
34 protected:
35 virtual ~FaviconDownloadHelperDelegate() {}
36 };
37
38 #endif // CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/favicon/favicon_download_helper.cc ('k') | chrome/browser/favicon/favicon_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698