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

Unified Diff: chrome/browser/mock_browsing_data_file_system_helper.h

Issue 8370026: base::Bind: Convert BrowsingDataFileSystemHelper::StartFetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/mock_browsing_data_file_system_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mock_browsing_data_file_system_helper.h
diff --git a/chrome/browser/mock_browsing_data_file_system_helper.h b/chrome/browser/mock_browsing_data_file_system_helper.h
index 6e172eee634ae6e1135a9aff8100b4aa0485a44b..15dac27c0da6e3b2b086a736d0d7b6ea82717388 100644
--- a/chrome/browser/mock_browsing_data_file_system_helper.h
+++ b/chrome/browser/mock_browsing_data_file_system_helper.h
@@ -10,6 +10,7 @@
#include <map>
#include "base/callback.h"
+#include "base/compiler_specific.h"
#include "chrome/browser/browsing_data_file_system_helper.h"
#include "webkit/fileapi/file_system_types.h"
@@ -20,12 +21,11 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper {
public:
explicit MockBrowsingDataFileSystemHelper(Profile* profile);
- virtual void StartFetching(
- Callback1<const std::list<FileSystemInfo>& >::Type* callback);
-
- virtual void CancelNotification();
-
- virtual void DeleteFileSystemOrigin(const GURL& origin);
+ // BrowsingDataFileSystemHelper implementation.
+ virtual void StartFetching(const base::Callback<
+ void(const std::list<FileSystemInfo>&)>& callback) OVERRIDE;
+ virtual void CancelNotification() OVERRIDE;
+ virtual void DeleteFileSystemOrigin(const GURL& origin) OVERRIDE;
// Adds a specific filesystem.
void AddFileSystem(const GURL& origin,
@@ -41,7 +41,7 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper {
// Marks all filesystems as existing.
void Reset();
- // Returns true if all filesystemss since the last Reset() invokation were
+ // Returns true if all filesystemss since the last Reset() invocation were
// deleted.
bool AllDeleted();
@@ -52,8 +52,7 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper {
Profile* profile_;
- scoped_ptr<Callback1<const std::list<FileSystemInfo>& >::Type >
- callback_;
+ base::Callback<void(const std::list<FileSystemInfo>&)> callback_;
// Stores which filesystems exist.
std::map<const std::string, bool> file_systems_;
« no previous file with comments | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/mock_browsing_data_file_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698