diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-23 18:19:28 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-23 18:19:28 +0000 |
commit | 35cc399e87932dea35a3cc7eb156cacbbff06b40 (patch) | |
tree | d7de7d46dd3eb7004a5c36060c03dedaac4cca7f /chrome/browser/browsing_data_indexed_db_helper.cc | |
parent | 76d192b7c4ac31481129253c82aff596cf7c4932 (diff) | |
download | chromium_src-35cc399e87932dea35a3cc7eb156cacbbff06b40.zip chromium_src-35cc399e87932dea35a3cc7eb156cacbbff06b40.tar.gz chromium_src-35cc399e87932dea35a3cc7eb156cacbbff06b40.tar.bz2 |
Add Content API around DOMStorageContext and IndexedDBContext. In a followup change I will remove WebKitContext usage from chrome, and then in another change probably remove it altogether.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9447010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123277 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_indexed_db_helper.cc')
-rw-r--r-- | chrome/browser/browsing_data_indexed_db_helper.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/browsing_data_indexed_db_helper.cc b/chrome/browser/browsing_data_indexed_db_helper.cc index a26207c..b673e98 100644 --- a/chrome/browser/browsing_data_indexed_db_helper.cc +++ b/chrome/browser/browsing_data_indexed_db_helper.cc @@ -13,13 +13,14 @@ #include "base/string_util.h" #include "base/utf_string_conversions.h" #include "chrome/browser/profiles/profile.h" -#include "content/browser/in_process_webkit/webkit_context.h" #include "content/public/browser/browser_thread.h" +#include "content/public/browser/indexed_db_context.h" #include "webkit/database/database_util.h" #include "webkit/glue/webkit_glue.h" using content::BrowserContext; using content::BrowserThread; +using content::IndexedDBContext; using webkit_database::DatabaseUtil; namespace { @@ -63,8 +64,7 @@ class BrowsingDataIndexedDBHelperImpl : public BrowsingDataIndexedDBHelper { BrowsingDataIndexedDBHelperImpl::BrowsingDataIndexedDBHelperImpl( Profile* profile) - : indexed_db_context_( - BrowserContext::GetWebKitContext(profile)->indexed_db_context()), + : indexed_db_context_(IndexedDBContext::GetForBrowserContext(profile)), is_fetching_(false) { DCHECK(indexed_db_context_.get()); } @@ -104,8 +104,7 @@ void BrowsingDataIndexedDBHelperImpl::DeleteIndexedDB( void BrowsingDataIndexedDBHelperImpl::FetchIndexedDBInfoInWebKitThread() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)); - std::vector<GURL> origins; - indexed_db_context_->GetAllOrigins(&origins); + std::vector<GURL> origins = indexed_db_context_->GetAllOrigins(); for (std::vector<GURL>::const_iterator iter = origins.begin(); iter != origins.end(); ++iter) { const GURL& origin = *iter; @@ -137,7 +136,7 @@ void BrowsingDataIndexedDBHelperImpl::NotifyInUIThread() { void BrowsingDataIndexedDBHelperImpl::DeleteIndexedDBInWebKitThread( const GURL& origin) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)); - indexed_db_context_->DeleteIndexedDBForOrigin(origin); + indexed_db_context_->DeleteForOrigin(origin); } } // namespace |