Revert r196089 "Add default values for Latin script font prefs."
[chromium-blink-merge.git] / chrome / browser / favicon / favicon_handler_delegate.h
blob0fc17490624ba99c4feb0ffd4d2ccd09c39100ed
1 // Copyright (c) 2012 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_FAVICON_HANDLER_DELEGATE_H_
6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_
8 class GURL;
10 namespace content {
11 class NavigationEntry;
14 // This class provides a delegate interface for a FaviconHandler. It allows the
15 // FaviconHandler to ask its delegate for information or notify its delegate
16 // about changes.
17 class FaviconHandlerDelegate {
18 public:
19 // Returns the current NavigationEntry.
20 virtual content::NavigationEntry* GetActiveEntry() = 0;
22 // Starts the download for the given favicon. When finished, the delegate
23 // will call OnDidDownloadFavicon() with the results.
24 // Returns the unique id of the download request. The id will be passed
25 // in OnDidDownloadFavicon().
26 virtual int StartDownload(const GURL& url, int image_size) = 0;
28 // Notifies the delegate that the favicon for the active entry was updated.
29 // |icon_url_changed| is true if a favicon with a different icon URL has
30 // been selected since the previous call to NotifyFaviconUpdated().
31 virtual void NotifyFaviconUpdated(bool icon_url_changed) = 0;
34 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_