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 COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_H_ | 5 #ifndef COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_H_ |
6 #define COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_H_ | 6 #define COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/task/cancelable_task_tracker.h" | 16 #include "base/task/cancelable_task_tracker.h" |
17 #include "components/favicon/core/favicon_driver_observer.h" | 17 #include "components/favicon/core/favicon_driver_observer.h" |
18 #include "components/favicon/core/favicon_url.h" | 18 #include "components/favicon/core/favicon_url.h" |
19 #include "components/favicon_base/favicon_callback.h" | 19 #include "components/favicon_base/favicon_callback.h" |
20 #include "ui/gfx/favicon_size.h" | 20 #include "ui/gfx/favicon_size.h" |
21 #include "ui/gfx/image/image.h" | 21 #include "ui/gfx/image/image.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 class SkBitmap; | 24 class SkBitmap; |
25 | 25 |
26 namespace base { | |
27 class RefCountedMemory; | |
28 } | |
29 | |
30 namespace favicon { | 26 namespace favicon { |
31 | 27 |
32 class FaviconDriver; | 28 class FaviconDriver; |
33 class FaviconService; | 29 class FaviconService; |
34 class TestFaviconHandler; | 30 class TestFaviconHandler; |
35 | 31 |
36 // FaviconHandler works with FaviconDriver to fetch the specific type of | 32 // FaviconHandler works with FaviconDriver to fetch the specific type of |
37 // favicon. | 33 // favicon. |
38 // | 34 // |
39 // FetchFavicon requests the favicon from the favicon service which in turn | 35 // FetchFavicon requests the favicon from the favicon service which in turn |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // available the favicon service and the current page are updated (assuming | 300 // available the favicon service and the current page are updated (assuming |
305 // the image is for a favicon). | 301 // the image is for a favicon). |
306 FaviconCandidate best_favicon_candidate_; | 302 FaviconCandidate best_favicon_candidate_; |
307 | 303 |
308 DISALLOW_COPY_AND_ASSIGN(FaviconHandler); | 304 DISALLOW_COPY_AND_ASSIGN(FaviconHandler); |
309 }; | 305 }; |
310 | 306 |
311 } // namespace favicon | 307 } // namespace favicon |
312 | 308 |
313 #endif // COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_H_ | 309 #endif // COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_H_ |
OLD | NEW |