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

Unified Diff: chrome/browser/mock_browsing_data_database_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
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/mock_browsing_data_database_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_database_helper.h
diff --git a/chrome/browser/mock_browsing_data_database_helper.h b/chrome/browser/mock_browsing_data_database_helper.h
index e925e0b8fbcfa86211777111bff0fb7776a7414f..a4590779d8976e39a8600386cf43a7c005865abe 100644
--- a/chrome/browser/mock_browsing_data_database_helper.h
+++ b/chrome/browser/mock_browsing_data_database_helper.h
@@ -6,22 +6,22 @@
#define CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_
#pragma once
+#include <list>
#include <map>
-#include <vector>
#include "base/callback.h"
#include "chrome/browser/browsing_data_database_helper.h"
// Mock for BrowsingDataDatabaseHelper.
-// Use AddDatabaseSamples() or add directly to response_ vector, then call
+// Use AddDatabaseSamples() or add directly to response_ list, then call
// Notify().
class MockBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
public:
explicit MockBrowsingDataDatabaseHelper(Profile* profile);
virtual void StartFetching(
- Callback1<const std::vector<DatabaseInfo>& >::Type* callback);
+ Callback1<const std::list<DatabaseInfo>& >::Type* callback);
virtual void CancelNotification();
@@ -50,13 +50,13 @@ class MockBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
Profile* profile_;
- scoped_ptr<Callback1<const std::vector<DatabaseInfo>& >::Type >
+ scoped_ptr<Callback1<const std::list<DatabaseInfo>& >::Type >
callback_;
// Stores which databases exist.
std::map<const std::string, bool> databases_;
- std::vector<DatabaseInfo> response_;
+ std::list<DatabaseInfo> response_;
};
#endif // CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/mock_browsing_data_database_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698