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

Unified Diff: chrome/browser/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/browsing_data_local_storage_helper.h
diff --git a/chrome/browser/browsing_data_local_storage_helper.h b/chrome/browser/browsing_data_local_storage_helper.h
index b5306a7a7e6c8a5903cf0eb1ba35abd1870cae3c..53a88a925088fabfc99669ec8e8ac4fa630d8d86 100644
--- a/chrome/browser/browsing_data_local_storage_helper.h
+++ b/chrome/browser/browsing_data_local_storage_helper.h
@@ -6,9 +6,9 @@
#define CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
#pragma once
+#include <list>
#include <set>
#include <string>
-#include <vector>
#include "base/callback_old.h"
#include "base/file_path.h"
@@ -64,7 +64,7 @@ class BrowsingDataLocalStorageHelper
// callback.
// This must be called only in the UI thread.
virtual void StartFetching(
- Callback1<const std::vector<LocalStorageInfo>& >::Type* callback);
+ Callback1<const std::list<LocalStorageInfo>& >::Type* callback);
// Cancels the notification callback (i.e., the window that created it no
// longer exists).
// This must be called only in the UI thread.
@@ -82,7 +82,7 @@ class BrowsingDataLocalStorageHelper
Profile* profile_;
// This only mutates on the UI thread.
- scoped_ptr<Callback1<const std::vector<LocalStorageInfo>& >::Type >
+ scoped_ptr<Callback1<const std::list<LocalStorageInfo>& >::Type >
completion_callback_;
// Indicates whether or not we're currently fetching information:
@@ -92,7 +92,7 @@ class BrowsingDataLocalStorageHelper
bool is_fetching_;
// This only mutates in the WEBKIT thread.
- std::vector<LocalStorageInfo> local_storage_info_;
+ std::list<LocalStorageInfo> local_storage_info_;
private:
// Enumerates all local storage files in the WEBKIT thread.
@@ -128,7 +128,7 @@ class CannedBrowsingDataLocalStorageHelper
// BrowsingDataLocalStorageHelper methods.
virtual void StartFetching(
- Callback1<const std::vector<LocalStorageInfo>& >::Type* callback);
+ Callback1<const std::list<LocalStorageInfo>& >::Type* callback);
virtual void CancelNotification() {}
private:
« no previous file with comments | « chrome/browser/browsing_data_indexed_db_helper_browsertest.cc ('k') | chrome/browser/browsing_data_local_storage_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698