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 COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_CLIENT_H_ | 5 #ifndef COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_CLIENT_H_ |
6 #define COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_CLIENT_H_ | 6 #define COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_CLIENT_H_ |
7 | 7 |
8 #include "components/keyed_service/core/keyed_service.h" | 8 #include "components/keyed_service/core/keyed_service.h" |
9 | 9 |
10 class FaviconService; | 10 class FaviconService; |
11 class GURL; | 11 class GURL; |
12 | 12 |
13 // This class abstracts operations that depend on the embedder's environment, | 13 // This class abstracts operations that depend on the embedder's environment, |
14 // e.g. Chrome. | 14 // e.g. Chrome. |
15 class FaviconClient : public KeyedService { | 15 class FaviconClient : public KeyedService { |
16 public: | 16 public: |
17 virtual ~FaviconClient() {}; | 17 ~FaviconClient() override{}; |
18 | 18 |
19 virtual FaviconService* GetFaviconService() = 0; | 19 virtual FaviconService* GetFaviconService() = 0; |
20 | 20 |
21 // Returns true if the specified URL is bookmarked. | 21 // Returns true if the specified URL is bookmarked. |
22 virtual bool IsBookmarked(const GURL& url) = 0; | 22 virtual bool IsBookmarked(const GURL& url) = 0; |
23 }; | 23 }; |
24 | 24 |
25 #endif // COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_CLIENT_H_ | 25 #endif // COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_CLIENT_H_ |
OLD | NEW |