Fire an error if a pref used in the UI is missing once all prefs are fetched.
[chromium-blink-merge.git] / chrome / browser / favicon / chrome_favicon_client.h
blobe8251f012748cfe58222a2c24dded23cf2003cbe
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"
11 class GURL;
12 class Profile;
14 namespace bookmarks {
15 class BookmarkModel;
18 // ChromeFaviconClient implements the the FaviconClient interface.
19 class ChromeFaviconClient : public FaviconClient {
20 public:
21 ChromeFaviconClient(Profile* profile,
22 bookmarks::BookmarkModel* bookmark_model);
23 ~ChromeFaviconClient() override;
25 private:
26 // FaviconClient implementation:
27 bool IsBookmarked(const GURL& url) override;
28 bool IsNativeApplicationURL(const GURL& url) override;
29 base::CancelableTaskTracker::TaskId GetFaviconForNativeApplicationURL(
30 const GURL& url,
31 const std::vector<int>& desired_sizes_in_pixel,
32 const favicon_base::FaviconResultsCallback& callback,
33 base::CancelableTaskTracker* tracker) override;
35 Profile* profile_;
36 bookmarks::BookmarkModel* bookmark_model_;
38 DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient);
41 #endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_