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

Unified Diff: chrome/browser/mock_browsing_data_local_storage_helper.h

Issue 8393036: base::Bind: Convert BrowsingDataLocalStorageHelper::StartFetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. 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_local_storage_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_local_storage_helper.h
diff --git a/chrome/browser/mock_browsing_data_local_storage_helper.h b/chrome/browser/mock_browsing_data_local_storage_helper.h
index 0163184eb2d1ef5a490df72f73c51871d5402f8c..dbc6a4a929c010318b67dd91b86e4a832ed72799 100644
--- a/chrome/browser/mock_browsing_data_local_storage_helper.h
+++ b/chrome/browser/mock_browsing_data_local_storage_helper.h
@@ -10,6 +10,7 @@
#include <map>
#include "base/callback.h"
+#include "base/compiler_specific.h"
#include "chrome/browser/browsing_data_local_storage_helper.h"
// Mock for BrowsingDataLocalStorageHelper.
@@ -20,12 +21,12 @@ class MockBrowsingDataLocalStorageHelper
public:
explicit MockBrowsingDataLocalStorageHelper(Profile* profile);
+ // BrowsingDataLocalStorageHelper implementation.
virtual void StartFetching(
- Callback1<const std::list<LocalStorageInfo>& >::Type* callback);
-
- virtual void CancelNotification();
-
- virtual void DeleteLocalStorageFile(const FilePath& file_path);
+ const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback)
+ OVERRIDE;
+ virtual void CancelNotification() OVERRIDE;
+ virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE;
// Adds some LocalStorageInfo samples.
void AddLocalStorageSamples();
@@ -36,8 +37,8 @@ class MockBrowsingDataLocalStorageHelper
// Marks all local storage files as existing.
void Reset();
- // Returns true if all local storage files were deleted since the last
- // Reset() invokation.
+ // Returns true if all local storage files were deleted since the last Reset()
+ // invocation.
bool AllDeleted();
FilePath last_deleted_file_;
@@ -47,8 +48,7 @@ class MockBrowsingDataLocalStorageHelper
Profile* profile_;
- scoped_ptr<Callback1<const std::list<LocalStorageInfo>& >::Type >
- callback_;
+ base::Callback<void(const std::list<LocalStorageInfo>&)> callback_;
std::map<const FilePath::StringType, bool> files_;
« no previous file with comments | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/mock_browsing_data_local_storage_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698