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

Side by Side Diff: content/browser/indexed_db/indexed_db_dispatcher_host.cc

Issue 1147433002: IndexedDB: Added IDBIndex.getAll() implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaked getAll comments in indexed_db_database.cc Created 5 years, 7 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 unified diff | Download patch
OLDNEW
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/guid.h" 10 #include "base/guid.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 653 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
654 IndexedDBConnection* connection = 654 IndexedDBConnection* connection =
655 parent_->GetOrTerminateProcess(&map_, params.ipc_database_id); 655 parent_->GetOrTerminateProcess(&map_, params.ipc_database_id);
656 if (!connection || !connection->IsConnected()) 656 if (!connection || !connection->IsConnected())
657 return; 657 return;
658 658
659 scoped_refptr<IndexedDBCallbacks> callbacks(new IndexedDBCallbacks( 659 scoped_refptr<IndexedDBCallbacks> callbacks(new IndexedDBCallbacks(
660 parent_, params.ipc_thread_id, params.ipc_callbacks_id)); 660 parent_, params.ipc_thread_id, params.ipc_callbacks_id));
661 connection->database()->GetAll( 661 connection->database()->GetAll(
662 parent_->HostTransactionId(params.transaction_id), params.object_store_id, 662 parent_->HostTransactionId(params.transaction_id), params.object_store_id,
663 make_scoped_ptr(new IndexedDBKeyRange(params.key_range)), 663 params.index_id, make_scoped_ptr(new IndexedDBKeyRange(params.key_range)),
664 params.max_count, callbacks); 664 params.max_count, callbacks);
665 } 665 }
666 666
667 void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnPutWrapper( 667 void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnPutWrapper(
668 const IndexedDBHostMsg_DatabasePut_Params& params) { 668 const IndexedDBHostMsg_DatabasePut_Params& params) {
669 std::vector<storage::BlobDataHandle*> handles; 669 std::vector<storage::BlobDataHandle*> handles;
670 for (size_t i = 0; i < params.value.blob_or_file_info.size(); ++i) { 670 for (size_t i = 0; i < params.value.blob_or_file_info.size(); ++i) {
671 const IndexedDBMsg_BlobOrFileInfo& info = params.value.blob_or_file_info[i]; 671 const IndexedDBMsg_BlobOrFileInfo& info = params.value.blob_or_file_info[i];
672 handles.push_back(parent_->blob_storage_context_->context() 672 handles.push_back(parent_->blob_storage_context_->context()
673 ->GetBlobDataFromUUID(info.uuid) 673 ->GetBlobDataFromUUID(info.uuid)
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 } 1044 }
1045 1045
1046 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( 1046 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
1047 int32 ipc_object_id) { 1047 int32 ipc_object_id) {
1048 DCHECK( 1048 DCHECK(
1049 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 1049 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
1050 parent_->DestroyObject(&map_, ipc_object_id); 1050 parent_->DestroyObject(&map_, ipc_object_id);
1051 } 1051 }
1052 1052
1053 } // namespace content 1053 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/child/indexed_db/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698