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

Unified Diff: chrome/browser/browsing_data/browsing_data_indexed_db_helper.h

Issue 17518004: Move IndexedDB from WEBKIT_DEPRECATED to dedicated thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 7 years, 6 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/browsing_data_indexed_db_helper.h
diff --git a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.h b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.h
index ee4e76f4ef971577e27c326f5d4f92275e53ffdc..2f4713e2ec67b73909f87b375ac2efe680fd1691 100644
--- a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.h
+++ b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.h
@@ -39,7 +39,7 @@ class BrowsingDataIndexedDBHelper
virtual void StartFetching(
const base::Callback<void(const std::list<content::IndexedDBInfo>&)>&
callback) = 0;
- // Requests a single indexed database to be deleted in the WEBKIT thread.
+ // Requests a single indexed database to be deleted in the IndexedDB thread.
virtual void DeleteIndexedDB(const GURL& origin) = 0;
protected:
@@ -64,7 +64,7 @@ class CannedBrowsingDataIndexedDBHelper
string16 name;
};
- CannedBrowsingDataIndexedDBHelper();
+ explicit CannedBrowsingDataIndexedDBHelper(Profile* profile);
// Return a copy of the IndexedDB helper. Only one consumer can use the
// StartFetching method at a time, so we need to create a copy of the helper
@@ -100,7 +100,7 @@ class CannedBrowsingDataIndexedDBHelper
virtual ~CannedBrowsingDataIndexedDBHelper();
// Convert the pending indexed db info to indexed db info objects.
- void ConvertPendingInfoInWebKitThread();
+ void ConvertPendingInfoInIndexedDBThread();
void NotifyInUIThread();
@@ -108,7 +108,7 @@ class CannedBrowsingDataIndexedDBHelper
mutable base::Lock lock_;
// Access to |pending_indexed_db_info_| is protected by |lock_| since it can
- // be accessed on the UI and on the WEBKIT thread.
+ // be accessed on the UI and on the IndexedDB thread.
std::set<PendingIndexedDBInfo> pending_indexed_db_info_;
// Access to |indexed_db_info_| is triggered indirectly via the UI thread and
@@ -123,6 +123,9 @@ class CannedBrowsingDataIndexedDBHelper
base::Callback<void(const std::list<content::IndexedDBInfo>&)>
completion_callback_;
+ Profile* profile_;
+ scoped_refptr<content::IndexedDBContext> indexed_db_context_;
+
// Indicates whether or not we're currently fetching information:
// it's true when StartFetching() is called in the UI thread, and it's reset
// after we notified the callback in the UI thread.

Powered by Google App Engine
This is Rietveld 408576698