summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/top_sites_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/top_sites_backend.h')
-rw-r--r--chrome/browser/history/top_sites_backend.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/chrome/browser/history/top_sites_backend.h b/chrome/browser/history/top_sites_backend.h
index 95ff242..a2a5b61 100644
--- a/chrome/browser/history/top_sites_backend.h
+++ b/chrome/browser/history/top_sites_backend.h
@@ -6,7 +6,7 @@
#define CHROME_BROWSER_HISTORY_TOP_SITES_BACKEND_H_
#pragma once
-#include "base/callback.h"
+#include "base/callback_old.h"
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -35,17 +35,15 @@ class TopSitesBackend
// The boolean parameter indicates if the DB existed on disk or needs to be
// migrated.
- typedef base::Callback<
- void(Handle, scoped_refptr<MostVisitedThumbnails>, bool)>
- GetMostVisitedThumbnailsCallback;
+ typedef Callback3<Handle, scoped_refptr<MostVisitedThumbnails>, bool >::Type
+ GetMostVisitedThumbnailsCallback;
typedef CancelableRequest1<TopSitesBackend::GetMostVisitedThumbnailsCallback,
scoped_refptr<MostVisitedThumbnails> >
GetMostVisitedThumbnailsRequest;
// Fetches MostVisitedThumbnails.
- Handle GetMostVisitedThumbnails(
- CancelableRequestConsumerBase* consumer,
- const GetMostVisitedThumbnailsCallback& callback);
+ Handle GetMostVisitedThumbnails(CancelableRequestConsumerBase* consumer,
+ GetMostVisitedThumbnailsCallback* callback);
// Updates top sites database from the specified delta.
void UpdateTopSites(const TopSitesDelta& delta);
@@ -58,7 +56,7 @@ class TopSitesBackend
// Deletes the database and recreates it.
void ResetDatabase();
- typedef base::Callback<void(Handle)> EmptyRequestCallback;
+ typedef Callback1<Handle>::Type EmptyRequestCallback;
typedef CancelableRequest<TopSitesBackend::EmptyRequestCallback>
EmptyRequestRequest;
@@ -66,7 +64,7 @@ class TopSitesBackend
// the callback on the calling thread. This is used to make sure the db has
// finished processing a request.
Handle DoEmptyRequest(CancelableRequestConsumerBase* consumer,
- const EmptyRequestCallback& callback);
+ EmptyRequestCallback* callback);
private:
friend class base::RefCountedThreadSafe<TopSitesBackend>;