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

Unified Diff: chrome/browser/mock_browsing_data_local_storage_helper.h

Issue 7676002: When deleting storage through the cookies tree model, also update its cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 4 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
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 0dba0b16ee308001b98a9c2d21cf43dc9f59a2dc..f03637e72492df7c1a0c9f22e0dfc71c13ba57ee 100644
--- a/chrome/browser/mock_browsing_data_local_storage_helper.h
+++ b/chrome/browser/mock_browsing_data_local_storage_helper.h
@@ -6,14 +6,14 @@
#define CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
#pragma once
+#include <list>
#include <map>
-#include <vector>
#include "base/callback.h"
#include "chrome/browser/browsing_data_local_storage_helper.h"
// Mock for BrowsingDataLocalStorageHelper.
-// Use AddLocalStorageSamples() or add directly to response_ vector, then
+// Use AddLocalStorageSamples() or add directly to response_ list, then
// call Notify().
class MockBrowsingDataLocalStorageHelper
: public BrowsingDataLocalStorageHelper {
@@ -21,7 +21,7 @@ class MockBrowsingDataLocalStorageHelper
explicit MockBrowsingDataLocalStorageHelper(Profile* profile);
virtual void StartFetching(
- Callback1<const std::vector<LocalStorageInfo>& >::Type* callback);
+ Callback1<const std::list<LocalStorageInfo>& >::Type* callback);
virtual void CancelNotification();
@@ -47,12 +47,12 @@ class MockBrowsingDataLocalStorageHelper
Profile* profile_;
- scoped_ptr<Callback1<const std::vector<LocalStorageInfo>& >::Type >
+ scoped_ptr<Callback1<const std::list<LocalStorageInfo>& >::Type >
callback_;
std::map<const FilePath::StringType, bool> files_;
- std::vector<LocalStorageInfo> response_;
+ std::list<LocalStorageInfo> response_;
};
#endif // CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
« no previous file with comments | « chrome/browser/mock_browsing_data_indexed_db_helper.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