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

Unified Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 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: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
===================================================================
--- content/browser/in_process_webkit/indexed_db_dispatcher_host.cc (revision 123509)
+++ content/browser/in_process_webkit/indexed_db_dispatcher_host.cc (working copy)
@@ -61,8 +61,8 @@
}
IndexedDBDispatcherHost::IndexedDBDispatcherHost(
- int process_id, WebKitContext* webkit_context)
- : webkit_context_(webkit_context),
+ int process_id, IndexedDBContextImpl* indexed_db_context)
+ : indexed_db_context_(indexed_db_context),
ALLOW_THIS_IN_INITIALIZER_LIST(database_dispatcher_host_(
new DatabaseDispatcherHost(this))),
ALLOW_THIS_IN_INITIALIZER_LIST(index_dispatcher_host_(
@@ -74,7 +74,7 @@
ALLOW_THIS_IN_INITIALIZER_LIST(transaction_dispatcher_host_(
new TransactionDispatcherHost(this))),
process_id_(process_id) {
- DCHECK(webkit_context_.get());
+ DCHECK(indexed_db_context_.get());
}
IndexedDBDispatcherHost::~IndexedDBDispatcherHost() {
@@ -206,7 +206,7 @@
void IndexedDBDispatcherHost::OnIDBFactoryGetDatabaseNames(
const IndexedDBHostMsg_FactoryGetDatabaseNames_Params& params) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED));
- FilePath base_path = webkit_context_->data_path();
+ FilePath base_path = indexed_db_context_->data_path();
FilePath indexed_db_path;
if (!base_path.empty()) {
indexed_db_path = base_path.Append(
@@ -232,7 +232,7 @@
void IndexedDBDispatcherHost::OnIDBFactoryOpen(
const IndexedDBHostMsg_FactoryOpen_Params& params) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED));
- FilePath base_path = webkit_context_->data_path();
+ FilePath base_path = indexed_db_context_->data_path();
FilePath indexed_db_path;
if (!base_path.empty()) {
indexed_db_path = base_path.Append(
@@ -260,7 +260,7 @@
void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase(
const IndexedDBHostMsg_FactoryDeleteDatabase_Params& params) {
- FilePath base_path = webkit_context_->data_path();
+ FilePath base_path = indexed_db_context_->data_path();
FilePath indexed_db_path;
if (!base_path.empty()) {
indexed_db_path = base_path.Append(

Powered by Google App Engine
This is Rietveld 408576698