1 // Copyright 2014 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 CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_
6 #define CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_
8 #include "base/macros.h"
9 #include "components/favicon/core/favicon_client.h"
18 // ChromeFaviconClient implements the the FaviconClient interface.
19 class ChromeFaviconClient
: public FaviconClient
{
21 ChromeFaviconClient(Profile
* profile
,
22 bookmarks::BookmarkModel
* bookmark_model
);
23 ~ChromeFaviconClient() override
;
26 // FaviconClient implementation:
27 bool IsBookmarked(const GURL
& url
) override
;
28 bool IsNativeApplicationURL(const GURL
& url
) override
;
29 base::CancelableTaskTracker::TaskId
GetFaviconForNativeApplicationURL(
31 const std::vector
<int>& desired_sizes_in_pixel
,
32 const favicon_base::FaviconResultsCallback
& callback
,
33 base::CancelableTaskTracker
* tracker
) override
;
36 bookmarks::BookmarkModel
* bookmark_model_
;
38 DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient
);
41 #endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_