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

Side by Side Diff: content/common/indexed_db/indexed_db_dispatcher.h

Issue 11194026: Flush out IPC for onSuccess() / onSuccess(long long) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: formatting nit Created 8 years, 2 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 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 void CursorDestroyed(int32 cursor_id); 210 void CursorDestroyed(int32 cursor_id);
211 void DatabaseDestroyed(int32 database_id); 211 void DatabaseDestroyed(int32 database_id);
212 212
213 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); 213 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction);
214 214
215 private: 215 private:
216 FRIEND_TEST_ALL_PREFIXES(IndexedDBDispatcherTest, ValueSizeTest); 216 FRIEND_TEST_ALL_PREFIXES(IndexedDBDispatcherTest, ValueSizeTest);
217 217
218 // IDBCallback message handlers. 218 // IDBCallback message handlers.
219 void OnSuccessNull(int32 response_id);
220 void OnSuccessIDBDatabase(int32 thread_id, 219 void OnSuccessIDBDatabase(int32 thread_id,
221 int32 response_id, 220 int32 response_id,
222 int32 object_id); 221 int32 object_id);
223 void OnSuccessIndexedDBKey(int32 thread_id, 222 void OnSuccessIndexedDBKey(int32 thread_id,
224 int32 response_id, 223 int32 response_id,
225 const content::IndexedDBKey& key); 224 const content::IndexedDBKey& key);
226 void OnSuccessIDBTransaction(int32 thread_id, 225 void OnSuccessIDBTransaction(int32 thread_id,
227 int32 response_id, 226 int32 response_id,
228 int32 object_id); 227 int32 object_id);
229 void OnSuccessOpenCursor( 228 void OnSuccessOpenCursor(
230 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); 229 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p);
231 void OnSuccessCursorContinue( 230 void OnSuccessCursorContinue(
232 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); 231 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p);
233 void OnSuccessCursorPrefetch( 232 void OnSuccessCursorPrefetch(
234 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); 233 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p);
235 void OnSuccessStringList(int32 thread_id, 234 void OnSuccessStringList(int32 thread_id,
236 int32 response_id, 235 int32 response_id,
237 const std::vector<string16>& value); 236 const std::vector<string16>& value);
238 void OnSuccessSerializedScriptValue( 237 void OnSuccessSerializedScriptValue(
239 int32 thread_id, 238 int32 thread_id,
240 int32 response_id, 239 int32 response_id,
241 const content::SerializedScriptValue& value); 240 const content::SerializedScriptValue& value);
242 void OnSuccessSerializedScriptValueWithKey( 241 void OnSuccessSerializedScriptValueWithKey(
243 int32 thread_id, 242 int32 thread_id,
244 int32 response_id, 243 int32 response_id,
245 const content::SerializedScriptValue& value, 244 const content::SerializedScriptValue& value,
246 const content::IndexedDBKey& primary_key, 245 const content::IndexedDBKey& primary_key,
247 const content::IndexedDBKeyPath& key_path); 246 const content::IndexedDBKeyPath& key_path);
247 void OnSuccessInteger(
248 int32 thread_id,
249 int32 response_id,
250 int64 value);
251 void OnSuccessUndefined(
252 int32 thread_id,
253 int32 response_id);
248 void OnError(int32 thread_id, 254 void OnError(int32 thread_id,
249 int32 response_id, 255 int32 response_id,
250 int code, 256 int code,
251 const string16& message); 257 const string16& message);
252 void OnBlocked(int32 thread_id, int32 response_id); 258 void OnBlocked(int32 thread_id, int32 response_id);
253 void OnIntBlocked(int32 thread_id, int32 response_id, int64 existing_version); 259 void OnIntBlocked(int32 thread_id, int32 response_id, int64 existing_version);
254 void OnUpgradeNeeded(int32 thread_id, 260 void OnUpgradeNeeded(int32 thread_id,
255 int32 response_id, 261 int32 response_id,
256 int32 transaction_id, 262 int32 transaction_id,
257 int32 database_id, 263 int32 database_id,
(...skipping 25 matching lines...) Expand all
283 289
284 // Map from cursor id to RendererWebIDBCursorImpl. 290 // Map from cursor id to RendererWebIDBCursorImpl.
285 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 291 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
286 292
287 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 293 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
288 294
289 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 295 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
290 }; 296 };
291 297
292 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 298 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_callbacks.cc ('k') | content/common/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698