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

Unified Diff: chrome/browser/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: rebase 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_indexed_db_helper.h
diff --git a/chrome/browser/browsing_data_indexed_db_helper.h b/chrome/browser/browsing_data_indexed_db_helper.h
index 36254e7c2397c2752900f753d39298a82f4a41ca..104077def1725dd7541226b5b8c112897bdad942 100644
--- a/chrome/browser/browsing_data_indexed_db_helper.h
+++ b/chrome/browser/browsing_data_indexed_db_helper.h
@@ -6,8 +6,8 @@
#define CHROME_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_
#pragma once
+#include <list>
#include <string>
-#include <vector>
#include "base/callback_old.h"
#include "base/file_path.h"
@@ -64,7 +64,7 @@ class BrowsingDataIndexedDBHelper
// callback.
// This must be called only in the UI thread.
virtual void StartFetching(
- Callback1<const std::vector<IndexedDBInfo>& >::Type* callback) = 0;
+ Callback1<const std::list<IndexedDBInfo>& >::Type* callback) = 0;
// Cancels the notification callback (i.e., the window that created it no
// longer exists).
// This must be called only in the UI thread.
@@ -103,7 +103,7 @@ class CannedBrowsingDataIndexedDBHelper
// BrowsingDataIndexedDBHelper methods.
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) {}
@@ -130,13 +130,13 @@ class CannedBrowsingDataIndexedDBHelper
mutable base::Lock lock_;
// This may mutate on WEBKIT and UI threads.
- std::vector<PendingIndexedDBInfo> pending_indexed_db_info_;
+ std::list<PendingIndexedDBInfo> pending_indexed_db_info_;
// This only mutates on the WEBKIT thread.
- std::vector<IndexedDBInfo> indexed_db_info_;
+ std::list<IndexedDBInfo> indexed_db_info_;
// This only mutates on the UI thread.
- scoped_ptr<Callback1<const std::vector<IndexedDBInfo>& >::Type >
+ scoped_ptr<Callback1<const std::list<IndexedDBInfo>& >::Type >
completion_callback_;
// Indicates whether or not we're currently fetching information:

Powered by Google App Engine
This is Rietveld 408576698