| 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_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 SkBitmap GetFavicon() const; | 48 SkBitmap GetFavicon() const; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Message Handlers. | 51 // Message Handlers. |
| 52 void OnUpdateFaviconURL(int32 page_id, | 52 void OnUpdateFaviconURL(int32 page_id, |
| 53 const std::vector<FaviconURL>& candidates); | 53 const std::vector<FaviconURL>& candidates); |
| 54 | 54 |
| 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 const SkBitmap& bitmap); | 58 int requested_size, |
| 59 const std::vector<SkBitmap>& bitmaps); |
| 59 | 60 |
| 60 scoped_ptr<internal::FaviconBitmapHandler> favicon_handler_; | 61 scoped_ptr<internal::FaviconBitmapHandler> favicon_handler_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(LauncherFaviconLoader); | 63 DISALLOW_COPY_AND_ASSIGN(LauncherFaviconLoader); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_ | 66 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_ |
| OLD | NEW |