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

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

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ToT Created 7 years, 6 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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/common/indexed_db/indexed_db_key.h" 9 #include "content/common/indexed_db/indexed_db_key.h"
10 #include "content/common/indexed_db/indexed_db_key_path.h" 10 #include "content/common/indexed_db/indexed_db_key_path.h"
11 #include "content/common/indexed_db/indexed_db_key_range.h" 11 #include "content/common/indexed_db/indexed_db_key_range.h"
12 #include "content/common/indexed_db/indexed_db_param_traits.h" 12 #include "content/common/indexed_db/indexed_db_param_traits.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_param_traits.h" 14 #include "ipc/ipc_param_traits.h"
15 #include "third_party/WebKit/public/platform/WebIDBCursor.h" 15 #include "third_party/WebKit/public/platform/WebIDBCursor.h"
16 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 16 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
17 #include "third_party/WebKit/public/platform/WebIDBMetadata.h" 17 #include "third_party/WebKit/public/platform/WebIDBMetadata.h"
18 18
19 #define IPC_MESSAGE_START IndexedDBMsgStart 19 #define IPC_MESSAGE_START IndexedDBMsgStart
20 20
21 // Argument structures used in messages 21 // Argument structures used in messages
22 22
23 IPC_ENUM_TRAITS(WebKit::WebIDBCursor::Direction) 23 IPC_ENUM_TRAITS(WebKit::WebIDBCursor::Direction)
24 IPC_ENUM_TRAITS(WebKit::WebIDBDatabase::PutMode) 24 IPC_ENUM_TRAITS(WebKit::WebIDBDatabase::PutMode)
25 IPC_ENUM_TRAITS(WebKit::WebIDBDatabase::TaskType) 25 IPC_ENUM_TRAITS(WebKit::WebIDBDatabase::TaskType)
26 26
27 IPC_ENUM_TRAITS_MAX_VALUE(WebKit::WebIDBCallbacks::DataLoss,
28 WebKit::WebIDBCallbacks::DataLossTotal)
29
27 // Used to enumerate indexed databases. 30 // Used to enumerate indexed databases.
28 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) 31 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
29 // The response should have these ids. 32 // The response should have these ids.
30 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 33 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
31 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 34 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
32 // The string id of the origin doing the initiating. 35 // The string id of the origin doing the initiating.
33 IPC_STRUCT_MEMBER(std::string, database_identifier) 36 IPC_STRUCT_MEMBER(std::string, database_identifier)
34 IPC_STRUCT_END() 37 IPC_STRUCT_END()
35 38
36 // Used to open an indexed database. 39 // Used to open an indexed database.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 IPC_STRUCT_MEMBER(int64, max_object_store_id) 283 IPC_STRUCT_MEMBER(int64, max_object_store_id)
281 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores) 284 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores)
282 IPC_STRUCT_END() 285 IPC_STRUCT_END()
283 286
284 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params) 287 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params)
285 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 288 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
286 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 289 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
287 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id) 290 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
288 IPC_STRUCT_MEMBER(int32, ipc_database_id) 291 IPC_STRUCT_MEMBER(int32, ipc_database_id)
289 IPC_STRUCT_MEMBER(int64, old_version) 292 IPC_STRUCT_MEMBER(int64, old_version)
293 IPC_STRUCT_MEMBER(WebKit::WebIDBCallbacks::DataLoss, data_loss)
290 IPC_STRUCT_MEMBER(IndexedDBDatabaseMetadata, idb_metadata) 294 IPC_STRUCT_MEMBER(IndexedDBDatabaseMetadata, idb_metadata)
291 IPC_STRUCT_END() 295 IPC_STRUCT_END()
292 296
293 // Indexed DB messages sent from the browser to the renderer. 297 // Indexed DB messages sent from the browser to the renderer.
294 298
295 // The thread_id needs to be the first parameter in these messages. In the IO 299 // The thread_id needs to be the first parameter in these messages. In the IO
296 // thread on the renderer/client process, an IDB message filter assumes the 300 // thread on the renderer/client process, an IDB message filter assumes the
297 // thread_id is the first int. 301 // thread_id is the first int.
298 302
299 // IDBCallback message handlers. 303 // IDBCallback message handlers.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 499
496 // WebIDBDatabase::commit() message. 500 // WebIDBDatabase::commit() message.
497 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, 501 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
498 int32, /* ipc_database_id */ 502 int32, /* ipc_database_id */
499 int64) /* transaction_id */ 503 int64) /* transaction_id */
500 504
501 // WebIDBDatabase::~WebIDBCursor() message. 505 // WebIDBDatabase::~WebIDBCursor() message.
502 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 506 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
503 int32 /* ipc_cursor_id */) 507 int32 /* ipc_cursor_id */)
504 508
OLDNEW
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/test/data/indexeddb/open_bad_db.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698