| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ |
| 6 #define CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ | 6 #define CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/favicon/core/favicon_client.h" | 9 #include "components/favicon/core/favicon_client.h" |
| 10 | 10 |
| 11 class GURL; | 11 class GURL; |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 namespace bookmarks { | |
| 15 class BookmarkModel; | |
| 16 } | |
| 17 | |
| 18 // ChromeFaviconClient implements the the FaviconClient interface. | 14 // ChromeFaviconClient implements the the FaviconClient interface. |
| 19 class ChromeFaviconClient : public favicon::FaviconClient { | 15 class ChromeFaviconClient : public favicon::FaviconClient { |
| 20 public: | 16 public: |
| 21 explicit ChromeFaviconClient(Profile* profile); | 17 explicit ChromeFaviconClient(Profile* profile); |
| 22 ~ChromeFaviconClient() override; | 18 ~ChromeFaviconClient() override; |
| 23 | 19 |
| 24 private: | 20 private: |
| 25 // favicon::FaviconClient implementation: | 21 // favicon::FaviconClient implementation: |
| 26 bool IsNativeApplicationURL(const GURL& url) override; | 22 bool IsNativeApplicationURL(const GURL& url) override; |
| 27 base::CancelableTaskTracker::TaskId GetFaviconForNativeApplicationURL( | 23 base::CancelableTaskTracker::TaskId GetFaviconForNativeApplicationURL( |
| 28 const GURL& url, | 24 const GURL& url, |
| 29 const std::vector<int>& desired_sizes_in_pixel, | 25 const std::vector<int>& desired_sizes_in_pixel, |
| 30 const favicon_base::FaviconResultsCallback& callback, | 26 const favicon_base::FaviconResultsCallback& callback, |
| 31 base::CancelableTaskTracker* tracker) override; | 27 base::CancelableTaskTracker* tracker) override; |
| 32 | 28 |
| 33 Profile* profile_; | 29 Profile* profile_; |
| 34 | 30 |
| 35 DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient); | 31 DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient); |
| 36 }; | 32 }; |
| 37 | 33 |
| 38 #endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ | 34 #endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ |
| OLD | NEW |