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

Unified Diff: webkit/glue/image_resource_fetcher.h

Issue 8550010: base::Bind() conversion for webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
Index: webkit/glue/image_resource_fetcher.h
diff --git a/webkit/glue/image_resource_fetcher.h b/webkit/glue/image_resource_fetcher.h
index a90d019aff1e9cddc793543eac05f5c54d5b49fa..e9f0b514e44ec8d87d019e8e0a14e95cbd26677c 100644
--- a/webkit/glue/image_resource_fetcher.h
+++ b/webkit/glue/image_resource_fetcher.h
@@ -6,7 +6,7 @@
#define WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_
#include "base/basictypes.h"
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "webkit/glue/resource_fetcher.h"
class SkBitmap;
@@ -18,14 +18,14 @@ namespace webkit_glue {
// is used to download the favicon and images for web apps.
class ImageResourceFetcher {
public:
- typedef Callback2<ImageResourceFetcher*, const SkBitmap&>::Type Callback;
+ typedef base::Callback<void(ImageResourceFetcher*, const SkBitmap&)> Callback;
ImageResourceFetcher(const GURL& image_url,
WebKit::WebFrame* frame,
int id,
int image_size,
WebKit::WebURLRequest::TargetType target_type,
- Callback* callback);
+ const Callback& callback);
virtual ~ImageResourceFetcher();
@@ -40,7 +40,7 @@ class ImageResourceFetcher {
void OnURLFetchComplete(const WebKit::WebURLResponse& response,
const std::string& data);
- scoped_ptr<Callback> callback_;
+ Callback callback_;
// Unique identifier for the request.
const int id_;

Powered by Google App Engine
This is Rietveld 408576698