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

Unified Diff: chrome/browser/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 | « no previous file | chrome/browser/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/browsing_data_database_helper.h
diff --git a/chrome/browser/browsing_data_database_helper.h b/chrome/browser/browsing_data_database_helper.h
index 6bf57ebb50a1d0d21ca3fdac1df5daa812c6353b..62cc2d9f2809d0f0fc591b407bd4084a03530db7 100644
--- a/chrome/browser/browsing_data_database_helper.h
+++ b/chrome/browser/browsing_data_database_helper.h
@@ -6,8 +6,8 @@
#define CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_
#pragma once
+#include <list>
#include <string>
-#include <vector>
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
@@ -57,7 +57,7 @@ class BrowsingDataDatabaseHelper
// callback.
// This must be called only in the UI thread.
virtual void StartFetching(
- Callback1<const std::vector<DatabaseInfo>& >::Type* callback);
+ Callback1<const std::list<DatabaseInfo>& >::Type* callback);
// Cancels the notification callback (i.e., the window that created it no
// longer exists).
@@ -77,10 +77,10 @@ class BrowsingDataDatabaseHelper
void NotifyInUIThread();
// This only mutates in the FILE thread.
- std::vector<DatabaseInfo> database_info_;
+ std::list<DatabaseInfo> database_info_;
// This only mutates on the UI thread.
- scoped_ptr<Callback1<const std::vector<DatabaseInfo>& >::Type >
+ scoped_ptr<Callback1<const std::list<DatabaseInfo>& >::Type >
completion_callback_;
// Indicates whether or not we're currently fetching information:
@@ -128,7 +128,7 @@ class CannedBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
// BrowsingDataDatabaseHelper methods.
virtual void StartFetching(
- Callback1<const std::vector<DatabaseInfo>& >::Type* callback);
+ Callback1<const std::list<DatabaseInfo>& >::Type* callback);
virtual void CancelNotification() {}
private:
@@ -153,7 +153,7 @@ class CannedBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
mutable base::Lock lock_;
// This may mutate on WEBKIT and UI threads.
- std::vector<PendingDatabaseInfo> pending_database_info_;
+ std::list<PendingDatabaseInfo> pending_database_info_;
Profile* profile_;
« no previous file with comments | « no previous file | chrome/browser/browsing_data_database_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698