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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 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/proxy_webidbdatabase_impl.h" 5 #include "content/child/indexed_db/proxy_webidbdatabase_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/child/thread_safe_sender.h" 9 #include "content/child/thread_safe_sender.h"
10 #include "content/child/indexed_db/indexed_db_dispatcher.h" 10 #include "content/child/indexed_db/indexed_db_dispatcher.h"
11 #include "content/child/indexed_db/indexed_db_key_builders.h" 11 #include "content/child/indexed_db/indexed_db_key_builders.h"
12 #include "content/common/indexed_db/indexed_db_messages.h" 12 #include "content/common/indexed_db/indexed_db_messages.h"
13 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h" 13 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
14 #include "third_party/WebKit/public/platform/WebIDBMetadata.h" 14 #include "third_party/WebKit/public/platform/WebIDBMetadata.h"
15 #include "third_party/WebKit/public/platform/WebString.h" 15 #include "third_party/WebKit/public/platform/WebString.h"
16 #include "third_party/WebKit/public/platform/WebVector.h" 16 #include "third_party/WebKit/public/platform/WebVector.h"
17 #include "webkit/child/worker_task_runner.h" 17 #include "webkit/child/worker_task_runner.h"
18 18
19 using WebKit::WebIDBCallbacks; 19 using blink::WebIDBCallbacks;
20 using WebKit::WebIDBDatabaseCallbacks; 20 using blink::WebIDBDatabaseCallbacks;
21 using WebKit::WebIDBMetadata; 21 using blink::WebIDBMetadata;
22 using WebKit::WebIDBKey; 22 using blink::WebIDBKey;
23 using WebKit::WebIDBKeyPath; 23 using blink::WebIDBKeyPath;
24 using WebKit::WebIDBKeyRange; 24 using blink::WebIDBKeyRange;
25 using WebKit::WebString; 25 using blink::WebString;
26 using WebKit::WebVector; 26 using blink::WebVector;
27 using webkit_glue::WorkerTaskRunner; 27 using webkit_glue::WorkerTaskRunner;
28 28
29 namespace content { 29 namespace content {
30 30
31 RendererWebIDBDatabaseImpl::RendererWebIDBDatabaseImpl( 31 RendererWebIDBDatabaseImpl::RendererWebIDBDatabaseImpl(
32 int32 ipc_database_id, 32 int32 ipc_database_id,
33 int32 ipc_database_callbacks_id, 33 int32 ipc_database_callbacks_id,
34 ThreadSafeSender* thread_safe_sender) 34 ThreadSafeSender* thread_safe_sender)
35 : ipc_database_id_(ipc_database_id), 35 : ipc_database_id_(ipc_database_id),
36 ipc_database_callbacks_id_(ipc_database_callbacks_id), 36 ipc_database_callbacks_id_(ipc_database_callbacks_id),
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 object_store_id, 109 object_store_id,
110 index_id, 110 index_id,
111 IndexedDBKeyRangeBuilder::Build(key_range), 111 IndexedDBKeyRangeBuilder::Build(key_range),
112 key_only, 112 key_only,
113 callbacks); 113 callbacks);
114 } 114 }
115 115
116 void RendererWebIDBDatabaseImpl::put( 116 void RendererWebIDBDatabaseImpl::put(
117 long long transaction_id, 117 long long transaction_id,
118 long long object_store_id, 118 long long object_store_id,
119 const WebKit::WebData& value, 119 const blink::WebData& value,
120 const WebIDBKey& key, 120 const WebIDBKey& key,
121 PutMode put_mode, 121 PutMode put_mode,
122 WebIDBCallbacks* callbacks, 122 WebIDBCallbacks* callbacks,
123 const WebVector<long long>& web_index_ids, 123 const WebVector<long long>& web_index_ids,
124 const WebVector<WebIndexKeys>& web_index_keys) { 124 const WebVector<WebIndexKeys>& web_index_keys) {
125 IndexedDBDispatcher* dispatcher = 125 IndexedDBDispatcher* dispatcher =
126 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get()); 126 IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
127 dispatcher->RequestIDBDatabasePut(ipc_database_id_, 127 dispatcher->RequestIDBDatabasePut(ipc_database_id_,
128 transaction_id, 128 transaction_id,
129 object_store_id, 129 object_store_id,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 thread_safe_sender_->Send(new IndexedDBHostMsg_DatabaseAbort( 274 thread_safe_sender_->Send(new IndexedDBHostMsg_DatabaseAbort(
275 ipc_database_id_, transaction_id)); 275 ipc_database_id_, transaction_id));
276 } 276 }
277 277
278 void RendererWebIDBDatabaseImpl::commit(long long transaction_id) { 278 void RendererWebIDBDatabaseImpl::commit(long long transaction_id) {
279 thread_safe_sender_->Send(new IndexedDBHostMsg_DatabaseCommit( 279 thread_safe_sender_->Send(new IndexedDBHostMsg_DatabaseCommit(
280 ipc_database_id_, transaction_id)); 280 ipc_database_id_, transaction_id));
281 } 281 }
282 282
283 } // namespace content 283 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/proxy_webidbdatabase_impl.h ('k') | content/child/indexed_db/proxy_webidbfactory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698