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_FAVICON_FAVICON_DOWNLOAD_HELPER_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_H_ |
6 #define CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/common/favicon_url.h" | |
13 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
| 13 #include "content/public/common/favicon_url.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class WebContents; | 16 class WebContents; |
17 } | 17 } |
18 | 18 |
19 namespace gfx { | 19 namespace gfx { |
20 class Image; | 20 class Image; |
21 } | 21 } |
22 | 22 |
23 class GURL; | 23 class GURL; |
(...skipping 30 matching lines...) Expand all Loading... |
54 // |bitmaps| is a list of all the frames of the icon at |image_url|. | 54 // |bitmaps| is a list of all the frames of the icon at |image_url|. |
55 void OnDidDownloadFavicon(int id, | 55 void OnDidDownloadFavicon(int id, |
56 const GURL& image_url, | 56 const GURL& image_url, |
57 bool errored, | 57 bool errored, |
58 int requested_size, | 58 int requested_size, |
59 const std::vector<SkBitmap>& bitmaps); | 59 const std::vector<SkBitmap>& bitmaps); |
60 | 60 |
61 // Message Handler, called when the FaviconURL associated with the specified | 61 // Message Handler, called when the FaviconURL associated with the specified |
62 // page is updated. | 62 // page is updated. |
63 void OnUpdateFaviconURL(int32 page_id, | 63 void OnUpdateFaviconURL(int32 page_id, |
64 const std::vector<FaviconURL>& candidates); | 64 const std::vector<content::FaviconURL>& candidates); |
65 | 65 |
66 // Delegate to pass Favicon bitmaps back to. Weak. | 66 // Delegate to pass Favicon bitmaps back to. Weak. |
67 FaviconDownloadHelperDelegate* delegate_; | 67 FaviconDownloadHelperDelegate* delegate_; |
68 | 68 |
69 // Ids of pending downloads. | 69 // Ids of pending downloads. |
70 DownloadIdList download_ids_; | 70 DownloadIdList download_ids_; |
71 | 71 |
72 DISALLOW_IMPLICIT_CONSTRUCTORS(FaviconDownloadHelper); | 72 DISALLOW_IMPLICIT_CONSTRUCTORS(FaviconDownloadHelper); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_H_ | 75 #endif // CHROME_BROWSER_FAVICON_FAVICON_DOWNLOAD_HELPER_H_ |
OLD | NEW |