Update V8 to version 4.6.62.
[chromium-blink-merge.git] / components / favicon / core / favicon_util.h
blobbff4311ed49e97e4ef5d5c2d325960139f44c039
1 // Copyright 2015 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.
5 #ifndef COMPONENTS_FAVICON_CORE_FAVICON_UTIL_H_
6 #define COMPONENTS_FAVICON_CORE_FAVICON_UTIL_H_
8 #include "base/callback_forward.h"
9 #include "base/task/cancelable_task_tracker.h"
10 #include "components/favicon_base/favicon_callback.h"
11 #include "components/favicon_base/favicon_types.h"
13 class GURL;
15 namespace favicon {
17 class FaviconService;
19 // Request a favicon from |favicon_service| for the page at |page_url|.
20 // |callback| is run when the the favicon has been fetched. If |type| is:
21 // - favicon_base::FAVICON, the returned gfx::Image is a multi-resolution image
22 // of gfx::kFaviconSize DIP width and height (the data from the cache is
23 // resized if need be),
24 // - otherwise, the returned gfx::Image is a single-resolution image with the
25 // largest bitmap in the cache for |page_url| and |type|.
26 base::CancelableTaskTracker::TaskId GetFaviconImageForPageURL(
27 FaviconService* favicon_service,
28 const GURL& page_url,
29 favicon_base::IconType type,
30 const favicon_base::FaviconImageCallback& callback,
31 base::CancelableTaskTracker* tracker);
33 } // namespace favicon
35 #endif // COMPONENTS_FAVICON_CORE_FAVICON_UTIL_H_