Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / chrome / browser / favicon / favicon_client_impl.h
blob06803030aa08809a2dceaa1279b214e96f63983f
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_
8 #include <vector>
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"
15 class GURL;
17 // FaviconClientImpl implements the favicon::FaviconClient interface on iOS.
18 class FaviconClientImpl : public favicon::FaviconClient {
19 public:
20 FaviconClientImpl();
21 ~FaviconClientImpl() override;
23 private:
24 // favicon::FaviconClient implementation.
25 bool IsNativeApplicationURL(const GURL& url) override;
26 base::CancelableTaskTracker::TaskId GetFaviconForNativeApplicationURL(
27 const GURL& url,
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_