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 6be7bbeedd927357bce71adac434d0b662b8c0e5..7ee4a546232410f9408d67679b847a97e36f8fdf 100644 |
--- a/chrome/browser/browsing_data_indexed_db_helper.h |
+++ b/chrome/browser/browsing_data_indexed_db_helper.h |
@@ -66,6 +66,15 @@ class BrowsingDataIndexedDBHelper |
class CannedBrowsingDataIndexedDBHelper |
: public BrowsingDataIndexedDBHelper { |
public: |
+ // Contains information about an indexed database. |
+ struct PendingIndexedDBInfo { |
+ PendingIndexedDBInfo(const GURL& origin, const string16& description); |
+ ~PendingIndexedDBInfo(); |
+ |
+ GURL origin; |
+ string16 description; |
+ }; |
+ |
CannedBrowsingDataIndexedDBHelper(); |
// Return a copy of the IndexedDB helper. Only one consumer can use the |
@@ -87,22 +96,19 @@ class CannedBrowsingDataIndexedDBHelper |
// Returns the number of currently stored indexed databases. |
size_t GetIndexedDBCount() const; |
+ // Returns the current list of indexed data bases. |
+ const std::list<PendingIndexedDBInfo>& pending_indexed_db_info() const { |
+ return pending_indexed_db_info_; |
+ } |
+ |
// BrowsingDataIndexedDBHelper methods. |
virtual void StartFetching( |
const base::Callback<void(const std::list<IndexedDBInfo>&)>& |
callback) OVERRIDE; |
+ |
virtual void DeleteIndexedDB(const GURL& origin) OVERRIDE {} |
private: |
- struct PendingIndexedDBInfo { |
- PendingIndexedDBInfo(); |
- PendingIndexedDBInfo(const GURL& origin, const string16& description); |
- ~PendingIndexedDBInfo(); |
- |
- GURL origin; |
- string16 description; |
- }; |
- |
virtual ~CannedBrowsingDataIndexedDBHelper(); |
// Convert the pending indexed db info to indexed db info objects. |
@@ -113,7 +119,7 @@ class CannedBrowsingDataIndexedDBHelper |
// Lock to protect access to pending_indexed_db_info_; |
mutable base::Lock lock_; |
- // This may mutate on WEBKIT and UI threads. |
+ // This only mutates on the UI thread. |
bauerb at google
2012/04/27 16:12:50
Do we know that?
markusheintz_
2012/05/10 16:32:36
yes. However it is read on the Webkit thread
|
std::list<PendingIndexedDBInfo> pending_indexed_db_info_; |
// This only mutates on the WEBKIT thread. |