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

Unified Diff: chrome/browser/mock_browsing_data_indexed_db_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_indexed_db_helper.h
diff --git a/chrome/browser/mock_browsing_data_indexed_db_helper.h b/chrome/browser/mock_browsing_data_indexed_db_helper.h
index 3a6a2823bde3181b138cb45ebf0adf22bdacecbf..ff38d79a9c9092d505f6cc51fbf3c5f60b5afd98 100644
--- a/chrome/browser/mock_browsing_data_indexed_db_helper.h
+++ b/chrome/browser/mock_browsing_data_indexed_db_helper.h
@@ -6,15 +6,15 @@
#define CHROME_BROWSER_MOCK_BROWSING_DATA_INDEXED_DB_HELPER_H_
#pragma once
+#include <list>
#include <map>
-#include <vector>
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/browsing_data_indexed_db_helper.h"
// Mock for BrowsingDataIndexedDBHelper.
-// Use AddIndexedDBSamples() or add directly to response_ vector, then
+// Use AddIndexedDBSamples() or add directly to response_ list, then
// call Notify().
class MockBrowsingDataIndexedDBHelper
: public BrowsingDataIndexedDBHelper {
@@ -36,7 +36,7 @@ class MockBrowsingDataIndexedDBHelper
// BrowsingDataIndexedDBHelper.
virtual void StartFetching(
- Callback1<const std::vector<IndexedDBInfo>& >::Type* callback);
+ Callback1<const std::list<IndexedDBInfo>& >::Type* callback);
virtual void CancelNotification();
virtual void DeleteIndexedDBFile(const FilePath& file_path);
@@ -47,12 +47,12 @@ class MockBrowsingDataIndexedDBHelper
Profile* profile_;
- scoped_ptr<Callback1<const std::vector<IndexedDBInfo>& >::Type >
+ scoped_ptr<Callback1<const std::list<IndexedDBInfo>& >::Type >
callback_;
std::map<const FilePath::StringType, bool> files_;
- std::vector<IndexedDBInfo> response_;
+ std::list<IndexedDBInfo> response_;
};
#endif // CHROME_BROWSER_MOCK_BROWSING_DATA_INDEXED_DB_HELPER_H_
« no previous file with comments | « chrome/browser/mock_browsing_data_file_system_helper.cc ('k') | chrome/browser/mock_browsing_data_indexed_db_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698