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