Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/browser/favicon/favicon_handler_delegate.h

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_FAVICON_HANDLER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_
6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_ 6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_
7 7
8 class GURL; 8 class GURL;
9 9
10 namespace content { 10 namespace content {
11 class NavigationEntry; 11 class NavigationEntry;
12 } 12 }
13 13
14 // This class provides a delegate interface for a FaviconHandler. It allows the 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 15 // FaviconHandler to ask its delegate for information or notify its delegate
16 // about changes. 16 // about changes.
17 class FaviconHandlerDelegate { 17 class FaviconHandlerDelegate {
18 public: 18 public:
19 virtual ~FaviconHandlerDelegate() { }
20
21 // Returns the current NavigationEntry. 19 // Returns the current NavigationEntry.
22 virtual content::NavigationEntry* GetActiveEntry() = 0; 20 virtual content::NavigationEntry* GetActiveEntry() = 0;
23 21
24 // Starts the download for the given favicon. When finished, the delegate 22 // Starts the download for the given favicon. When finished, the delegate
25 // will call OnDidDownloadFavicon() with the results. 23 // will call OnDidDownloadFavicon() with the results.
26 // Returns the unique id of the download request. The id will be passed 24 // Returns the unique id of the download request. The id will be passed
27 // in OnDidDownloadFavicon(). 25 // in OnDidDownloadFavicon().
28 virtual int StartDownload(const GURL& url, int image_size) = 0; 26 virtual int StartDownload(const GURL& url, int image_size) = 0;
29 27
30 // Notifies the delegate that the favicon for the active entry was updated. 28 // Notifies the delegate that the favicon for the active entry was updated.
31 virtual void NotifyFaviconUpdated() = 0; 29 virtual void NotifyFaviconUpdated() = 0;
32 }; 30 };
33 31
34 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_ 32 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_warning_service.h ('k') | chrome/browser/google_apis/auth_service_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698