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 "components/favicon/core/browser/favicon_client.h" | 8 #include "components/favicon/core/browser/favicon_client.h" |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 class FaviconService; | 12 class FaviconService; |
13 class GURL; | 13 class GURL; |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // ChromeFaviconClient implements the the FaviconClient interface. | 16 // ChromeFaviconClient implements the the FaviconClient interface. |
17 class ChromeFaviconClient : public FaviconClient { | 17 class ChromeFaviconClient : public FaviconClient { |
18 public: | 18 public: |
19 explicit ChromeFaviconClient(Profile* profile); | 19 explicit ChromeFaviconClient(Profile* profile); |
20 virtual ~ChromeFaviconClient(); | 20 virtual ~ChromeFaviconClient(); |
21 | 21 |
22 // FaviconClient implementation: | 22 // FaviconClient implementation: |
23 virtual FaviconService* GetFaviconService() OVERRIDE; | 23 virtual FaviconService* GetFaviconService() override; |
24 virtual bool IsBookmarked(const GURL& url) OVERRIDE; | 24 virtual bool IsBookmarked(const GURL& url) override; |
25 | 25 |
26 private: | 26 private: |
27 Profile* profile_; | 27 Profile* profile_; |
28 DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient); | 28 DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ | 31 #endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_ |
OLD | NEW |