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. |