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

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

Issue 11114022: IndexedDB: Plumbing to allow cause of transaction abort to be passed to script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 int32 response_id, 249 int32 response_id,
250 int code, 250 int code,
251 const string16& message); 251 const string16& message);
252 void OnBlocked(int32 thread_id, int32 response_id); 252 void OnBlocked(int32 thread_id, int32 response_id);
253 void OnIntBlocked(int32 thread_id, int32 response_id, int64 existing_version); 253 void OnIntBlocked(int32 thread_id, int32 response_id, int64 existing_version);
254 void OnUpgradeNeeded(int32 thread_id, 254 void OnUpgradeNeeded(int32 thread_id,
255 int32 response_id, 255 int32 response_id,
256 int32 transaction_id, 256 int32 transaction_id,
257 int32 database_id, 257 int32 database_id,
258 int64 old_version); 258 int64 old_version);
259 void OnAbort(int32 thread_id, int32 transaction_id); 259 // TODO(jsbell): Remove once WK99097 has landed.
260 void OnAbortLegacy(int32 thread_id, int32 transaction_id);
261 void OnAbort(int32 thread_id,
262 int32 transaction_id,
263 int code,
264 const string16& message);
260 void OnComplete(int32 thread_id, int32 transaction_id); 265 void OnComplete(int32 thread_id, int32 transaction_id);
261 void OnForcedClose(int32 thread_id, int32 database_id); 266 void OnForcedClose(int32 thread_id, int32 database_id);
262 void OnVersionChange(int32 thread_id, 267 void OnVersionChange(int32 thread_id,
263 int32 database_id, 268 int32 database_id,
264 const string16& newVersion); 269 const string16& newVersion);
265 void OnIntVersionChange(int32 thread_id, 270 void OnIntVersionChange(int32 thread_id,
266 int32 database_id, 271 int32 database_id,
267 int64 old_version, 272 int64 old_version,
268 int64 new_version); 273 int64 new_version);
269 274
(...skipping 10 matching lines...) Expand all
280 285
281 // Map from cursor id to RendererWebIDBCursorImpl. 286 // Map from cursor id to RendererWebIDBCursorImpl.
282 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 287 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
283 288
284 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 289 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
285 290
286 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 291 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
287 }; 292 };
288 293
289 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 294 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698