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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_database_callbacks.cc

Issue 15564008: Migrate the IndexedDB backend from Blink to Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Accessor naming, use LevelDBSlice ctor explicitly Created 7 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 | Annotate | Revision Log
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/in_process_webkit/indexed_db_database_callbacks.h" 5 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h"
6 6
7 #include "base/memory/scoped_vector.h"
7 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 8 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
8 #include "content/common/indexed_db/indexed_db_messages.h" 9 #include "content/common/indexed_db/indexed_db_messages.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( 13 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks(
13 IndexedDBDispatcherHost* dispatcher_host, 14 IndexedDBDispatcherHost* dispatcher_host,
14 int ipc_thread_id, 15 int ipc_thread_id,
15 int ipc_database_callbacks_id) 16 int ipc_database_callbacks_id)
16 : dispatcher_host_(dispatcher_host), 17 : dispatcher_host_(dispatcher_host),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 52
52 void IndexedDBDatabaseCallbacks::onComplete(long long host_transaction_id) { 53 void IndexedDBDatabaseCallbacks::onComplete(long long host_transaction_id) {
53 dispatcher_host_->FinishTransaction(host_transaction_id, true); 54 dispatcher_host_->FinishTransaction(host_transaction_id, true);
54 dispatcher_host_->Send( 55 dispatcher_host_->Send(
55 new IndexedDBMsg_DatabaseCallbacksComplete( 56 new IndexedDBMsg_DatabaseCallbacksComplete(
56 ipc_thread_id_, ipc_database_callbacks_id_, 57 ipc_thread_id_, ipc_database_callbacks_id_,
57 dispatcher_host_->RendererTransactionId(host_transaction_id))); 58 dispatcher_host_->RendererTransactionId(host_transaction_id)));
58 } 59 }
59 60
60 } // namespace content 61 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_dispatcher_host.h » ('j') | content/browser/indexed_db/indexed_db.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698