OLD | NEW |
---|---|
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 IndexedDBKey& key, |
173 int32 transaction_id, | 173 int32 transaction_id, |
174 WebKit::WebExceptionCode* ec); | 174 WebKit::WebExceptionCode* ec); |
175 void OnGetObjectByRange(int idb_index_id, | |
jsbell
2012/04/18 19:23:44
FYI, if anyone gives you grief about poorly named
| |
176 int32 thread_id, | |
177 int32 response_id, | |
178 const IndexedDBKeyRange& key_range, | |
179 int32 transaction_id, | |
180 WebKit::WebExceptionCode* ec); | |
175 void OnGetKey(int idb_index_id, | 181 void OnGetKey(int idb_index_id, |
176 int32 thread_id, | 182 int32 thread_id, |
177 int32 response_id, | 183 int32 response_id, |
178 const IndexedDBKey& key, | 184 const IndexedDBKey& key, |
179 int32 transaction_id, | 185 int32 transaction_id, |
180 WebKit::WebExceptionCode* ec); | 186 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); | |
181 void OnDestroyed(int32 idb_index_id); | 193 void OnDestroyed(int32 idb_index_id); |
182 | 194 |
183 IndexedDBDispatcherHost* parent_; | 195 IndexedDBDispatcherHost* parent_; |
184 IDMap<WebKit::WebIDBIndex, IDMapOwnPointer> map_; | 196 IDMap<WebKit::WebIDBIndex, IDMapOwnPointer> map_; |
185 }; | 197 }; |
186 | 198 |
187 class ObjectStoreDispatcherHost { | 199 class ObjectStoreDispatcherHost { |
188 public: | 200 public: |
189 explicit ObjectStoreDispatcherHost(IndexedDBDispatcherHost* parent); | 201 explicit ObjectStoreDispatcherHost(IndexedDBDispatcherHost* parent); |
190 ~ObjectStoreDispatcherHost(); | 202 ~ObjectStoreDispatcherHost(); |
191 | 203 |
192 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); | 204 bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok); |
193 void Send(IPC::Message* message); | 205 void Send(IPC::Message* message); |
194 | 206 |
195 void OnName(int32 idb_object_store_id, string16* name); | 207 void OnName(int32 idb_object_store_id, string16* name); |
196 void OnKeyPath(int32 idb_object_store_id, NullableString16* keyPath); | 208 void OnKeyPath(int32 idb_object_store_id, NullableString16* keyPath); |
197 void OnIndexNames(int32 idb_object_store_id, | 209 void OnIndexNames(int32 idb_object_store_id, |
198 std::vector<string16>* index_names); | 210 std::vector<string16>* index_names); |
199 void OnGet(int idb_object_store_id, | 211 void OnGet(int idb_object_store_id, |
200 int32 thread_id, | 212 int32 thread_id, |
201 int32 response_id, | 213 int32 response_id, |
202 const IndexedDBKey& key, | 214 const IndexedDBKey& key, |
203 int32 transaction_id, | 215 int32 transaction_id, |
204 WebKit::WebExceptionCode* ec); | 216 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); | |
205 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, | 223 void OnPut(const IndexedDBHostMsg_ObjectStorePut_Params& params, |
206 WebKit::WebExceptionCode* ec); | 224 WebKit::WebExceptionCode* ec); |
207 void OnDelete(int idb_object_store_id, | 225 void OnDelete(int idb_object_store_id, |
208 int32 thread_id, | 226 int32 thread_id, |
209 int32 response_id, | 227 int32 response_id, |
210 const IndexedDBKey& key, | 228 const IndexedDBKey& key, |
211 int32 transaction_id, | 229 int32 transaction_id, |
212 WebKit::WebExceptionCode* ec); | 230 WebKit::WebExceptionCode* ec); |
213 void OnDeleteRange(int idb_object_store_id, | 231 void OnDeleteRange(int idb_object_store_id, |
214 int32 thread_id, | 232 int32 thread_id, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 336 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
319 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 337 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
320 | 338 |
321 // Used to dispatch messages to the correct view host. | 339 // Used to dispatch messages to the correct view host. |
322 int process_id_; | 340 int process_id_; |
323 | 341 |
324 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 342 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
325 }; | 343 }; |
326 | 344 |
327 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 345 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |