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

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

Issue 10765021: Make the id used in IconMsg_DownloadFavicon unique (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 class GURL; 9 class GURL;
10 10
11 namespace content { 11 namespace content {
12 class NavigationEntry; 12 class NavigationEntry;
13 } 13 }
14 14
15 // This class provides a delegate interface for a FaviconHandler. It allows the 15 // This class provides a delegate interface for a FaviconHandler. It allows the
16 // FaviconHandler to ask its delegate for information or notify its delegate 16 // FaviconHandler to ask its delegate for information or notify its delegate
17 // about changes. 17 // about changes.
18 class FaviconHandlerDelegate { 18 class FaviconHandlerDelegate {
19 public: 19 public:
20 // Returns the current NavigationEntry. 20 // Returns the current NavigationEntry.
21 virtual content::NavigationEntry* GetActiveEntry() = 0; 21 virtual content::NavigationEntry* GetActiveEntry() = 0;
22 22
23 // Starts the download for the given favicon. When finished, the delegate 23 // Starts the download for the given favicon. When finished, the delegate
24 // will call |OnDidDownloadFavicon()| with the results. 24 // will call OnDidDownloadFavicon() with the results.
25 virtual void StartDownload(int id, const GURL& url, int image_size) = 0; 25 // Returns the unique id of the download request. The id will be passed
26 // in OnDidDownloadFavicon().
27 virtual int StartDownload(const GURL& url, int image_size) = 0;
26 28
27 // Notifies the delegate that the favicon for the active entry was updated. 29 // Notifies the delegate that the favicon for the active entry was updated.
28 virtual void NotifyFaviconUpdated() = 0; 30 virtual void NotifyFaviconUpdated() = 0;
29 }; 31 };
30 32
31 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_ 33 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_tab_helper.h » ('j') | chrome/browser/favicon/favicon_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698