| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 5 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); | 280 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
| 281 base::FilePath indexed_db_path = indexed_db_context_->data_path(); | 281 base::FilePath indexed_db_path = indexed_db_context_->data_path(); |
| 282 | 282 |
| 283 GURL origin_url = | 283 GURL origin_url = |
| 284 webkit_database::GetOriginFromIdentifier(params.database_identifier); | 284 webkit_database::GetOriginFromIdentifier(params.database_identifier); |
| 285 | 285 |
| 286 Context()->GetIDBFactory()->GetDatabaseNames( | 286 Context()->GetIDBFactory()->GetDatabaseNames( |
| 287 new IndexedDBCallbacks( | 287 new IndexedDBCallbacks( |
| 288 this, params.ipc_thread_id, params.ipc_callbacks_id), | 288 this, params.ipc_thread_id, params.ipc_callbacks_id), |
| 289 origin_url, | 289 origin_url, |
| 290 indexed_db_path); | 290 indexed_db_path, |
| 291 request_context_); |
| 291 } | 292 } |
| 292 | 293 |
| 293 void IndexedDBDispatcherHost::OnIDBFactoryOpen( | 294 void IndexedDBDispatcherHost::OnIDBFactoryOpen( |
| 294 const IndexedDBHostMsg_FactoryOpen_Params& params) { | 295 const IndexedDBHostMsg_FactoryOpen_Params& params) { |
| 295 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); | 296 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
| 296 base::FilePath indexed_db_path = indexed_db_context_->data_path(); | 297 base::FilePath indexed_db_path = indexed_db_context_->data_path(); |
| 297 | 298 |
| 298 GURL origin_url = | 299 GURL origin_url = |
| 299 webkit_database::GetOriginFromIdentifier(params.database_identifier); | 300 webkit_database::GetOriginFromIdentifier(params.database_identifier); |
| 300 | 301 |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 } | 978 } |
| 978 | 979 |
| 979 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( | 980 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( |
| 980 int32 ipc_object_id) { | 981 int32 ipc_object_id) { |
| 981 DCHECK( | 982 DCHECK( |
| 982 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); | 983 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
| 983 parent_->DestroyObject(&map_, ipc_object_id); | 984 parent_->DestroyObject(&map_, ipc_object_id); |
| 984 } | 985 } |
| 985 | 986 |
| 986 } // namespace content | 987 } // namespace content |
| OLD | NEW |