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

Unified Diff: chrome/browser/icon_manager.h

Issue 8068013: Add interface to CancelableRequest that allows use of base::Callback<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address brett's comments. Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/icon_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/icon_manager.h
diff --git a/chrome/browser/icon_manager.h b/chrome/browser/icon_manager.h
index 3b3b594f3ed1644f5884d31e51b21a008608ca19..3622203244cc9eff5fdf4f3a3f1dc8bf5a32c547 100644
--- a/chrome/browser/icon_manager.h
+++ b/chrome/browser/icon_manager.h
@@ -71,7 +71,7 @@ class IconManager : public IconLoader::Delegate,
IconLoader::IconSize size);
typedef CancelableRequestProvider::Handle Handle;
- typedef Callback2<Handle, gfx::Image*>::Type IconRequestCallback;
+ typedef base::Callback<void(Handle, gfx::Image*)> IconRequestCallback;
// Asynchronous call to lookup and return the icon associated with file. The
// work is done on the file thread, with the callbacks running on the UI
@@ -82,7 +82,7 @@ class IconManager : public IconLoader::Delegate,
Handle LoadIcon(const FilePath& file_name,
IconLoader::IconSize size,
CancelableRequestConsumerBase* consumer,
- IconRequestCallback* callback);
+ const IconRequestCallback& callback);
// IconLoader::Delegate interface.
virtual bool OnImageLoaded(IconLoader* source, gfx::Image* result);
« no previous file with comments | « no previous file | chrome/browser/icon_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698