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

Side by Side Diff: content/child/indexed_db/webidbdatabase_impl.cc

Issue 165373004: Move WorkerTaskRunner to content/child. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/child/quota_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/child/indexed_db/webidbdatabase_impl.h" 5 #include "content/child/indexed_db/webidbdatabase_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/child/indexed_db/indexed_db_dispatcher.h" 9 #include "content/child/indexed_db/indexed_db_dispatcher.h"
10 #include "content/child/indexed_db/indexed_db_key_builders.h" 10 #include "content/child/indexed_db/indexed_db_key_builders.h"
11 #include "content/child/thread_safe_sender.h" 11 #include "content/child/thread_safe_sender.h"
12 #include "content/child/worker_task_runner.h"
12 #include "content/common/indexed_db/indexed_db_messages.h" 13 #include "content/common/indexed_db/indexed_db_messages.h"
13 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h" 14 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
14 #include "third_party/WebKit/public/platform/WebIDBMetadata.h" 15 #include "third_party/WebKit/public/platform/WebIDBMetadata.h"
15 #include "third_party/WebKit/public/platform/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
16 #include "third_party/WebKit/public/platform/WebVector.h" 17 #include "third_party/WebKit/public/platform/WebVector.h"
17 #include "webkit/child/worker_task_runner.h"
18 18
19 using blink::WebIDBCallbacks; 19 using blink::WebIDBCallbacks;
20 using blink::WebIDBCursor; 20 using blink::WebIDBCursor;
21 using blink::WebIDBDatabase; 21 using blink::WebIDBDatabase;
22 using blink::WebIDBDatabaseCallbacks; 22 using blink::WebIDBDatabaseCallbacks;
23 using blink::WebIDBMetadata; 23 using blink::WebIDBMetadata;
24 using blink::WebIDBKey; 24 using blink::WebIDBKey;
25 using blink::WebIDBKeyPath; 25 using blink::WebIDBKeyPath;
26 using blink::WebIDBKeyRange; 26 using blink::WebIDBKeyRange;
27 using blink::WebString; 27 using blink::WebString;
28 using blink::WebVector; 28 using blink::WebVector;
29 using webkit_glue::WorkerTaskRunner;
30 29
31 namespace content { 30 namespace content {
32 31
33 WebIDBDatabaseImpl::WebIDBDatabaseImpl(int32 ipc_database_id, 32 WebIDBDatabaseImpl::WebIDBDatabaseImpl(int32 ipc_database_id,
34 int32 ipc_database_callbacks_id, 33 int32 ipc_database_callbacks_id,
35 ThreadSafeSender* thread_safe_sender) 34 ThreadSafeSender* thread_safe_sender)
36 : ipc_database_id_(ipc_database_id), 35 : ipc_database_id_(ipc_database_id),
37 ipc_database_callbacks_id_(ipc_database_callbacks_id), 36 ipc_database_callbacks_id_(ipc_database_callbacks_id),
38 thread_safe_sender_(thread_safe_sender) {} 37 thread_safe_sender_(thread_safe_sender) {}
39 38
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 thread_safe_sender_->Send( 255 thread_safe_sender_->Send(
257 new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id)); 256 new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id));
258 } 257 }
259 258
260 void WebIDBDatabaseImpl::commit(long long transaction_id) { 259 void WebIDBDatabaseImpl::commit(long long transaction_id) {
261 thread_safe_sender_->Send( 260 thread_safe_sender_->Send(
262 new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id)); 261 new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id));
263 } 262 }
264 263
265 } // namespace content 264 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/child/quota_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698