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

Side by Side Diff: content/common/indexed_db/proxy_webidbindex_impl.cc

Issue 10179003: IndexedDB: remove proxy and IPC code for the IDBKey-based get/getKey. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated formatting Created 8 years, 8 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/common/indexed_db/proxy_webidbindex_impl.h" 5 #include "content/common/indexed_db/proxy_webidbindex_impl.h"
6 6
7 #include "content/common/indexed_db/indexed_db_dispatcher.h" 7 #include "content/common/indexed_db/indexed_db_dispatcher.h"
8 #include "content/common/indexed_db/indexed_db_messages.h" 8 #include "content/common/indexed_db/indexed_db_messages.h"
9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" 9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h"
10 #include "content/common/child_thread.h" 10 #include "content/common/child_thread.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 WebKit::WebIDBCallbacks* callbacks, 93 WebKit::WebIDBCallbacks* callbacks,
94 const WebKit::WebIDBTransaction& transaction, 94 const WebKit::WebIDBTransaction& transaction,
95 WebExceptionCode& ec) { 95 WebExceptionCode& ec) {
96 IndexedDBDispatcher* dispatcher = 96 IndexedDBDispatcher* dispatcher =
97 IndexedDBDispatcher::ThreadSpecificInstance(); 97 IndexedDBDispatcher::ThreadSpecificInstance();
98 dispatcher->RequestIDBIndexCount( 98 dispatcher->RequestIDBIndexCount(
99 range, callbacks, idb_index_id_, transaction, &ec); 99 range, callbacks, idb_index_id_, transaction, &ec);
100 } 100 }
101 101
102 void RendererWebIDBIndexImpl::getObject( 102 void RendererWebIDBIndexImpl::getObject(
103 const WebKit::WebIDBKey& key,
104 WebKit::WebIDBCallbacks* callbacks,
105 const WebKit::WebIDBTransaction& transaction,
106 WebExceptionCode& ec) {
107 IndexedDBDispatcher* dispatcher =
108 IndexedDBDispatcher::ThreadSpecificInstance();
109 dispatcher->RequestIDBIndexGetObject(
110 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
111 }
112
113 void RendererWebIDBIndexImpl::getObject(
114 const WebKit::WebIDBKeyRange& key_range, 103 const WebKit::WebIDBKeyRange& key_range,
115 WebKit::WebIDBCallbacks* callbacks, 104 WebKit::WebIDBCallbacks* callbacks,
116 const WebKit::WebIDBTransaction& transaction, 105 const WebKit::WebIDBTransaction& transaction,
117 WebExceptionCode& ec) { 106 WebExceptionCode& ec) {
118 IndexedDBDispatcher* dispatcher = 107 IndexedDBDispatcher* dispatcher =
119 IndexedDBDispatcher::ThreadSpecificInstance(); 108 IndexedDBDispatcher::ThreadSpecificInstance();
120 dispatcher->RequestIDBIndexGetObjectByRange( 109 dispatcher->RequestIDBIndexGetObject(
121 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec); 110 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec);
122 } 111 }
123 112
124 void RendererWebIDBIndexImpl::getKey( 113 void RendererWebIDBIndexImpl::getKey(
125 const WebKit::WebIDBKey& key,
126 WebKit::WebIDBCallbacks* callbacks,
127 const WebKit::WebIDBTransaction& transaction,
128 WebExceptionCode& ec) {
129 IndexedDBDispatcher* dispatcher =
130 IndexedDBDispatcher::ThreadSpecificInstance();
131 dispatcher->RequestIDBIndexGetKey(
132 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
133 }
134
135 void RendererWebIDBIndexImpl::getKey(
136 const WebKit::WebIDBKeyRange& key_range, 114 const WebKit::WebIDBKeyRange& key_range,
137 WebKit::WebIDBCallbacks* callbacks, 115 WebKit::WebIDBCallbacks* callbacks,
138 const WebKit::WebIDBTransaction& transaction, 116 const WebKit::WebIDBTransaction& transaction,
139 WebExceptionCode& ec) { 117 WebExceptionCode& ec) {
140 IndexedDBDispatcher* dispatcher = 118 IndexedDBDispatcher* dispatcher =
141 IndexedDBDispatcher::ThreadSpecificInstance(); 119 IndexedDBDispatcher::ThreadSpecificInstance();
142 dispatcher->RequestIDBIndexGetKeyByRange( 120 dispatcher->RequestIDBIndexGetKey(
143 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec); 121 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec);
144 } 122 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbindex_impl.h ('k') | content/common/indexed_db/proxy_webidbobjectstore_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698