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 IOS_CHROME_BROWSER_FAVICON_FAVICON_CLIENT_IMPL_H_
6 #define IOS_CHROME_BROWSER_FAVICON_FAVICON_CLIENT_IMPL_H_
10 #include "base/macros.h"
11 #include "base/task/cancelable_task_tracker.h"
12 #include "components/favicon/core/favicon_client.h"
13 #include "components/favicon_base/favicon_callback.h"
17 // FaviconClientImpl implements the favicon::FaviconClient interface on iOS.
18 class FaviconClientImpl
: public favicon::FaviconClient
{
21 ~FaviconClientImpl() override
;
24 // favicon::FaviconClient implementation.
25 bool IsNativeApplicationURL(const GURL
& url
) override
;
26 base::CancelableTaskTracker::TaskId
GetFaviconForNativeApplicationURL(
28 const std::vector
<int>& desired_sizes_in_pixel
,
29 const favicon_base::FaviconResultsCallback
& callback
,
30 base::CancelableTaskTracker
* tracker
) override
;
32 DISALLOW_COPY_AND_ASSIGN(FaviconClientImpl
);
35 #endif // IOS_CHROME_BROWSER_FAVICON_FAVICON_CLIENT_IMPL_H_