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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.h

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
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_dispatcher_host.cc » ('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 (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 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void OnOpenObjectCursor( 162 void OnOpenObjectCursor(
163 const IndexedDBHostMsg_IndexOpenCursor_Params& params, 163 const IndexedDBHostMsg_IndexOpenCursor_Params& params,
164 WebKit::WebExceptionCode* ec); 164 WebKit::WebExceptionCode* ec);
165 void OnOpenKeyCursor(const IndexedDBHostMsg_IndexOpenCursor_Params& params, 165 void OnOpenKeyCursor(const IndexedDBHostMsg_IndexOpenCursor_Params& params,
166 WebKit::WebExceptionCode* ec); 166 WebKit::WebExceptionCode* ec);
167 void OnCount(const IndexedDBHostMsg_IndexCount_Params& params, 167 void OnCount(const IndexedDBHostMsg_IndexCount_Params& params,
168 WebKit::WebExceptionCode* ec); 168 WebKit::WebExceptionCode* ec);
169 void OnGetObject(int idb_index_id, 169 void OnGetObject(int idb_index_id,
170 int32 thread_id, 170 int32 thread_id,
171 int32 response_id, 171 int32 response_id,
172 const IndexedDBKey& key, 172 const IndexedDBKeyRange& key_range,
173 int32 transaction_id, 173 int32 transaction_id,
174 WebKit::WebExceptionCode* ec); 174 WebKit::WebExceptionCode* ec);
175 void OnGetObjectByRange(int idb_index_id,
176 int32 thread_id,
177 int32 response_id,
178 const IndexedDBKeyRange& key_range,
179 int32 transaction_id,
180 WebKit::WebExceptionCode* ec);
181 void OnGetKey(int idb_index_id, 175 void OnGetKey(int idb_index_id,
182 int32 thread_id, 176 int32 thread_id,
183 int32 response_id, 177 int32 response_id,
184 const IndexedDBKey& key, 178 const IndexedDBKeyRange& key_range,
185 int32 transaction_id, 179 int32 transaction_id,
186 WebKit::WebExceptionCode* ec); 180 WebKit::WebExceptionCode* ec);
187 void OnGetKeyByRange(int idb_index_id,
188 int32 thread_id,
189 int32 response_id,
190 const IndexedDBKeyRange& key_range,
191 int32 transaction_id,
192 WebKit::WebExceptionCode* ec);
193 void OnDestroyed(int32 idb_index_id); 181 void OnDestroyed(int32 idb_index_id);
194 182
195 IndexedDBDispatcherHost* parent_; 183 IndexedDBDispatcherHost* parent_;
196 IDMap<WebKit::WebIDBIndex, IDMapOwnPointer> map_; 184 IDMap<WebKit::WebIDBIndex, IDMapOwnPointer> map_;
197 }; 185 };
198 186
199 class ObjectStoreDispatcherHost { 187 class ObjectStoreDispatcherHost {
200 public: 188 public:
201 explicit ObjectStoreDispatcherHost(IndexedDBDispatcherHost* parent); 189 explicit ObjectStoreDispatcherHost(IndexedDBDispatcherHost* parent);
202 ~ObjectStoreDispatcherHost(); 190 ~ObjectStoreDispatcherHost();
203 191
204 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); 192 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok);
205 void Send(IPC::Message* message); 193 void Send(IPC::Message* message);
206 194
207 void OnName(int32 idb_object_store_id, string16* name); 195 void OnName(int32 idb_object_store_id, string16* name);
208 void OnKeyPath(int32 idb_object_store_id, NullableString16* keyPath); 196 void OnKeyPath(int32 idb_object_store_id, NullableString16* keyPath);
209 void OnIndexNames(int32 idb_object_store_id, 197 void OnIndexNames(int32 idb_object_store_id,
210 std::vector<string16>* index_names); 198 std::vector<string16>* index_names);
211 void OnGet(int idb_object_store_id, 199 void OnGet(int idb_object_store_id,
212 int32 thread_id, 200 int32 thread_id,
213 int32 response_id, 201 int32 response_id,
214 const IndexedDBKey& key, 202 const IndexedDBKeyRange& key_range,
215 int32 transaction_id, 203 int32 transaction_id,
216 WebKit::WebExceptionCode* ec); 204 WebKit::WebExceptionCode* ec);
217 void OnGetByRange(int idb_object_store_id,
218 int32 thread_id,
219 int32 response_id,
220 const IndexedDBKeyRange& key_range,
221 int32 transaction_id,
222 WebKit::WebExceptionCode* ec);
223 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, 205 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params,
224 WebKit::WebExceptionCode* ec); 206 WebKit::WebExceptionCode* ec);
225 void OnDelete(int idb_object_store_id, 207 void OnDelete(int idb_object_store_id,
226 int32 thread_id, 208 int32 thread_id,
227 int32 response_id, 209 int32 response_id,
228 const IndexedDBKey& key, 210 const IndexedDBKey& key,
229 int32 transaction_id, 211 int32 transaction_id,
230 WebKit::WebExceptionCode* ec); 212 WebKit::WebExceptionCode* ec);
231 void OnDeleteRange(int idb_object_store_id, 213 void OnDeleteRange(int idb_object_store_id,
232 int32 thread_id, 214 int32 thread_id,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; 318 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
337 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; 319 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_;
338 320
339 // Used to dispatch messages to the correct view host. 321 // Used to dispatch messages to the correct view host.
340 int process_id_; 322 int process_id_;
341 323
342 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 324 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
343 }; 325 };
344 326
345 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 327 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698