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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ |
6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ |
7 | 7 |
| 8 #include <deque> |
8 #include <map> | 9 #include <map> |
| 10 #include <vector> |
9 | 11 |
10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
13 #include "base/task/cancelable_task_tracker.h" | 15 #include "base/task/cancelable_task_tracker.h" |
14 #include "chrome/browser/favicon/favicon_service.h" | 16 #include "chrome/browser/favicon/favicon_service.h" |
15 #include "chrome/browser/favicon/favicon_tab_helper.h" | 17 #include "chrome/browser/favicon/favicon_tab_helper.h" |
16 #include "chrome/common/ref_counted_util.h" | 18 #include "chrome/common/ref_counted_util.h" |
17 #include "content/public/common/favicon_url.h" | 19 #include "content/public/common/favicon_url.h" |
18 #include "ui/gfx/favicon_size.h" | 20 #include "ui/gfx/favicon_size.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // Best image we've seen so far. As images are downloaded from the page they | 294 // Best image we've seen so far. As images are downloaded from the page they |
293 // are stored here. When there is an exact match, or no more images are | 295 // are stored here. When there is an exact match, or no more images are |
294 // available the favicon service and the NavigationEntry are updated (assuming | 296 // available the favicon service and the NavigationEntry are updated (assuming |
295 // the image is for a favicon). | 297 // the image is for a favicon). |
296 FaviconCandidate best_favicon_candidate_; | 298 FaviconCandidate best_favicon_candidate_; |
297 | 299 |
298 DISALLOW_COPY_AND_ASSIGN(FaviconHandler); | 300 DISALLOW_COPY_AND_ASSIGN(FaviconHandler); |
299 }; | 301 }; |
300 | 302 |
301 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ | 303 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ |
OLD | NEW |