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

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

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 if (!connection || !connection->IsConnected()) 718 if (!connection || !connection->IsConnected())
719 return; 719 return;
720 720
721 scoped_refptr<IndexedDBCallbacks> callbacks(new IndexedDBCallbacks( 721 scoped_refptr<IndexedDBCallbacks> callbacks(new IndexedDBCallbacks(
722 parent_, params.ipc_thread_id, params.ipc_callbacks_id, -1)); 722 parent_, params.ipc_thread_id, params.ipc_callbacks_id, -1));
723 connection->database()->OpenCursor( 723 connection->database()->OpenCursor(
724 parent_->HostTransactionId(params.transaction_id), 724 parent_->HostTransactionId(params.transaction_id),
725 params.object_store_id, 725 params.object_store_id,
726 params.index_id, 726 params.index_id,
727 make_scoped_ptr(new IndexedDBKeyRange(params.key_range)), 727 make_scoped_ptr(new IndexedDBKeyRange(params.key_range)),
728 static_cast<indexed_db::CursorDirection>(params.direction), 728 static_cast<blink::Direction>(params.direction),
729 params.key_only, 729 params.key_only,
730 static_cast<IndexedDBDatabase::TaskType>(params.task_type), 730 static_cast<blink::TaskType>(params.task_type),
731 callbacks); 731 callbacks);
732 } 732 }
733 733
734 void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCount( 734 void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCount(
735 const IndexedDBHostMsg_DatabaseCount_Params& params) { 735 const IndexedDBHostMsg_DatabaseCount_Params& params) {
736 DCHECK( 736 DCHECK(
737 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 737 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
738 IndexedDBConnection* connection = 738 IndexedDBConnection* connection =
739 parent_->GetOrTerminateProcess(&map_, params.ipc_database_id); 739 parent_->GetOrTerminateProcess(&map_, params.ipc_database_id);
740 if (!connection || !connection->IsConnected()) 740 if (!connection || !connection->IsConnected())
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 } 975 }
976 976
977 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( 977 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
978 int32 ipc_object_id) { 978 int32 ipc_object_id) {
979 DCHECK( 979 DCHECK(
980 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 980 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
981 parent_->DestroyObject(&map_, ipc_object_id); 981 parent_->DestroyObject(&map_, ipc_object_id);
982 } 982 }
983 983
984 } // namespace content 984 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698