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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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"
(...skipping 27 matching lines...) Expand all
38 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) 38 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params)
39 // The response should have these ids. 39 // The response should have these ids.
40 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 40 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
41 // Identifier of the request 41 // Identifier of the request
42 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 42 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
43 // Identifier for database callbacks 43 // Identifier for database callbacks
44 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id) 44 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
45 // The string id of the origin doing the initiating. 45 // The string id of the origin doing the initiating.
46 IPC_STRUCT_MEMBER(std::string, database_identifier) 46 IPC_STRUCT_MEMBER(std::string, database_identifier)
47 // The name of the database. 47 // The name of the database.
48 IPC_STRUCT_MEMBER(string16, name) 48 IPC_STRUCT_MEMBER(base::string16, name)
49 // The transaction id used if a database upgrade is needed. 49 // The transaction id used if a database upgrade is needed.
50 IPC_STRUCT_MEMBER(int64, transaction_id) 50 IPC_STRUCT_MEMBER(int64, transaction_id)
51 // The requested version of the database. 51 // The requested version of the database.
52 IPC_STRUCT_MEMBER(int64, version) 52 IPC_STRUCT_MEMBER(int64, version)
53 IPC_STRUCT_END() 53 IPC_STRUCT_END()
54 54
55 // Used to delete an indexed database. 55 // Used to delete an indexed database.
56 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) 56 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params)
57 // The response should have these ids. 57 // The response should have these ids.
58 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 58 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
59 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 59 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
60 // The string id of the origin doing the initiating. 60 // The string id of the origin doing the initiating.
61 IPC_STRUCT_MEMBER(std::string, database_identifier) 61 IPC_STRUCT_MEMBER(std::string, database_identifier)
62 // The name of the database. 62 // The name of the database.
63 IPC_STRUCT_MEMBER(string16, name) 63 IPC_STRUCT_MEMBER(base::string16, name)
64 IPC_STRUCT_END() 64 IPC_STRUCT_END()
65 65
66 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) 66 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params)
67 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 67 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
68 // The database the object store belongs to. 68 // The database the object store belongs to.
69 IPC_STRUCT_MEMBER(int32, ipc_database_id) 69 IPC_STRUCT_MEMBER(int32, ipc_database_id)
70 // The transaction id as minted by the frontend. 70 // The transaction id as minted by the frontend.
71 IPC_STRUCT_MEMBER(int64, transaction_id) 71 IPC_STRUCT_MEMBER(int64, transaction_id)
72 // To get to WebIDBDatabaseCallbacks. 72 // To get to WebIDBDatabaseCallbacks.
73 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id) 73 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
74 // The scope of the transaction. 74 // The scope of the transaction.
75 IPC_STRUCT_MEMBER(std::vector<int64>, object_store_ids) 75 IPC_STRUCT_MEMBER(std::vector<int64>, object_store_ids)
76 // The transaction mode. 76 // The transaction mode.
77 IPC_STRUCT_MEMBER(int32, mode) 77 IPC_STRUCT_MEMBER(int32, mode)
78 IPC_STRUCT_END() 78 IPC_STRUCT_END()
79 79
80 // Used to create an object store. 80 // Used to create an object store.
81 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) 81 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
82 // The database the object store belongs to. 82 // The database the object store belongs to.
83 IPC_STRUCT_MEMBER(int32, ipc_database_id) 83 IPC_STRUCT_MEMBER(int32, ipc_database_id)
84 // The transaction its associated with. 84 // The transaction its associated with.
85 IPC_STRUCT_MEMBER(int64, transaction_id) 85 IPC_STRUCT_MEMBER(int64, transaction_id)
86 // The storage id of the object store. 86 // The storage id of the object store.
87 IPC_STRUCT_MEMBER(int64, object_store_id) 87 IPC_STRUCT_MEMBER(int64, object_store_id)
88 // The name of the object store. 88 // The name of the object store.
89 IPC_STRUCT_MEMBER(string16, name) 89 IPC_STRUCT_MEMBER(base::string16, name)
90 // The keyPath of the object store. 90 // The keyPath of the object store.
91 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) 91 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
92 // Whether the object store created should have a key generator. 92 // Whether the object store created should have a key generator.
93 IPC_STRUCT_MEMBER(bool, auto_increment) 93 IPC_STRUCT_MEMBER(bool, auto_increment)
94 IPC_STRUCT_END() 94 IPC_STRUCT_END()
95 95
96 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseGet_Params) 96 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseGet_Params)
97 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 97 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
98 // The id any response should contain. 98 // The id any response should contain.
99 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 99 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateIndex_Params) 212 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateIndex_Params)
213 // The transaction this is associated with. 213 // The transaction this is associated with.
214 IPC_STRUCT_MEMBER(int64, transaction_id) 214 IPC_STRUCT_MEMBER(int64, transaction_id)
215 // The database being used. 215 // The database being used.
216 IPC_STRUCT_MEMBER(int32, ipc_database_id) 216 IPC_STRUCT_MEMBER(int32, ipc_database_id)
217 // The object store the index belongs to. 217 // The object store the index belongs to.
218 IPC_STRUCT_MEMBER(int64, object_store_id) 218 IPC_STRUCT_MEMBER(int64, object_store_id)
219 // The storage id of the index. 219 // The storage id of the index.
220 IPC_STRUCT_MEMBER(int64, index_id) 220 IPC_STRUCT_MEMBER(int64, index_id)
221 // The name of the index. 221 // The name of the index.
222 IPC_STRUCT_MEMBER(string16, name) 222 IPC_STRUCT_MEMBER(base::string16, name)
223 // The keyPath of the index. 223 // The keyPath of the index.
224 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) 224 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
225 // Whether the index created has unique keys. 225 // Whether the index created has unique keys.
226 IPC_STRUCT_MEMBER(bool, unique) 226 IPC_STRUCT_MEMBER(bool, unique)
227 // Whether the index created produces keys for each array entry. 227 // Whether the index created produces keys for each array entry.
228 IPC_STRUCT_MEMBER(bool, multi_entry) 228 IPC_STRUCT_MEMBER(bool, multi_entry)
229 IPC_STRUCT_END() 229 IPC_STRUCT_END()
230 230
231 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) 231 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
232 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 232 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
(...skipping 17 matching lines...) Expand all
250 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 250 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
251 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 251 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
252 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) 252 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
253 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) 253 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys)
254 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) 254 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys)
255 IPC_STRUCT_MEMBER(std::vector<std::string>, values) 255 IPC_STRUCT_MEMBER(std::vector<std::string>, values)
256 IPC_STRUCT_END() 256 IPC_STRUCT_END()
257 257
258 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) 258 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata)
259 IPC_STRUCT_MEMBER(int64, id) 259 IPC_STRUCT_MEMBER(int64, id)
260 IPC_STRUCT_MEMBER(string16, name) 260 IPC_STRUCT_MEMBER(base::string16, name)
261 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) 261 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath)
262 IPC_STRUCT_MEMBER(bool, unique) 262 IPC_STRUCT_MEMBER(bool, unique)
263 IPC_STRUCT_MEMBER(bool, multiEntry) 263 IPC_STRUCT_MEMBER(bool, multiEntry)
264 IPC_STRUCT_END() 264 IPC_STRUCT_END()
265 265
266 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata) 266 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata)
267 IPC_STRUCT_MEMBER(int64, id) 267 IPC_STRUCT_MEMBER(int64, id)
268 IPC_STRUCT_MEMBER(string16, name) 268 IPC_STRUCT_MEMBER(base::string16, name)
269 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) 269 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath)
270 IPC_STRUCT_MEMBER(bool, autoIncrement) 270 IPC_STRUCT_MEMBER(bool, autoIncrement)
271 IPC_STRUCT_MEMBER(int64, max_index_id) 271 IPC_STRUCT_MEMBER(int64, max_index_id)
272 IPC_STRUCT_MEMBER(std::vector<IndexedDBIndexMetadata>, indexes) 272 IPC_STRUCT_MEMBER(std::vector<IndexedDBIndexMetadata>, indexes)
273 IPC_STRUCT_END() 273 IPC_STRUCT_END()
274 274
275 IPC_STRUCT_BEGIN(IndexedDBDatabaseMetadata) 275 IPC_STRUCT_BEGIN(IndexedDBDatabaseMetadata)
276 IPC_STRUCT_MEMBER(int64, id) 276 IPC_STRUCT_MEMBER(int64, id)
277 IPC_STRUCT_MEMBER(string16, name) 277 IPC_STRUCT_MEMBER(base::string16, name)
278 IPC_STRUCT_MEMBER(string16, version) 278 IPC_STRUCT_MEMBER(base::string16, version)
279 IPC_STRUCT_MEMBER(int64, int_version) 279 IPC_STRUCT_MEMBER(int64, int_version)
280 IPC_STRUCT_MEMBER(int64, max_object_store_id) 280 IPC_STRUCT_MEMBER(int64, max_object_store_id)
281 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores) 281 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores)
282 IPC_STRUCT_END() 282 IPC_STRUCT_END()
283 283
284 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params) 284 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params)
285 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 285 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
286 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) 286 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
287 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id) 287 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
288 IPC_STRUCT_MEMBER(int32, ipc_database_id) 288 IPC_STRUCT_MEMBER(int32, ipc_database_id)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger, 334 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger,
335 int32 /* ipc_thread_id */, 335 int32 /* ipc_thread_id */,
336 int32 /* ipc_callbacks_id */, 336 int32 /* ipc_callbacks_id */,
337 int64 /* value */) 337 int64 /* value */)
338 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined, 338 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined,
339 int32 /* ipc_thread_id */, 339 int32 /* ipc_thread_id */,
340 int32 /* ipc_callbacks_id */) 340 int32 /* ipc_callbacks_id */)
341 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, 341 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList,
342 int32 /* ipc_thread_id */, 342 int32 /* ipc_thread_id */,
343 int32 /* ipc_callbacks_id */, 343 int32 /* ipc_callbacks_id */,
344 std::vector<string16> /* dom_string_list */) 344 std::vector<base::string16> /* dom_string_list */)
345 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError, 345 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError,
346 int32 /* ipc_thread_id */, 346 int32 /* ipc_thread_id */,
347 int32 /* ipc_callbacks_id */, 347 int32 /* ipc_callbacks_id */,
348 int /* code */, 348 int /* code */,
349 string16 /* message */) 349 base::string16 /* message */)
350 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked, 350 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked,
351 int32 /* ipc_thread_id */, 351 int32 /* ipc_thread_id */,
352 int32 /* ipc_callbacks_id */) 352 int32 /* ipc_callbacks_id */)
353 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked, 353 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked,
354 int32 /* ipc_thread_id */, 354 int32 /* ipc_thread_id */,
355 int32 /* ipc_callbacks_id */, 355 int32 /* ipc_callbacks_id */,
356 int64 /* existing_version */) 356 int64 /* existing_version */)
357 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksUpgradeNeeded, 357 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksUpgradeNeeded,
358 IndexedDBMsg_CallbacksUpgradeNeeded_Params) 358 IndexedDBMsg_CallbacksUpgradeNeeded_Params)
359 359
360 // IDBDatabaseCallback message handlers 360 // IDBDatabaseCallback message handlers
361 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose, 361 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose,
362 int32, /* ipc_thread_id */ 362 int32, /* ipc_thread_id */
363 int32) /* ipc_database_callbacks_id */ 363 int32) /* ipc_database_callbacks_id */
364 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange, 364 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange,
365 int32, /* ipc_thread_id */ 365 int32, /* ipc_thread_id */
366 int32, /* ipc_database_callbacks_id */ 366 int32, /* ipc_database_callbacks_id */
367 int64, /* old_version */ 367 int64, /* old_version */
368 int64) /* new_version */ 368 int64) /* new_version */
369 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort, 369 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort,
370 int32, /* ipc_thread_id */ 370 int32, /* ipc_thread_id */
371 int32, /* ipc_database_callbacks_id */ 371 int32, /* ipc_database_callbacks_id */
372 int64, /* transaction_id */ 372 int64, /* transaction_id */
373 int, /* code */ 373 int, /* code */
374 string16) /* message */ 374 base::string16) /* message */
375 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete, 375 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete,
376 int32, /* ipc_thread_id */ 376 int32, /* ipc_thread_id */
377 int32, /* ipc_database_callbacks_id */ 377 int32, /* ipc_database_callbacks_id */
378 int64) /* transaction_id */ 378 int64) /* transaction_id */
379 379
380 // Indexed DB messages sent from the renderer to the browser. 380 // Indexed DB messages sent from the renderer to the browser.
381 381
382 // WebIDBCursor::advance() message. 382 // WebIDBCursor::advance() message.
383 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorAdvance, 383 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorAdvance,
384 int32, /* ipc_cursor_id */ 384 int32, /* ipc_cursor_id */
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 // WebIDBDatabase::commit() message. 499 // WebIDBDatabase::commit() message.
500 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, 500 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
501 int32, /* ipc_database_id */ 501 int32, /* ipc_database_id */
502 int64) /* transaction_id */ 502 int64) /* transaction_id */
503 503
504 // WebIDBDatabase::~WebIDBCursor() message. 504 // WebIDBDatabase::~WebIDBCursor() message.
505 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 505 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
506 int32 /* ipc_cursor_id */) 506 int32 /* ipc_cursor_id */)
507 507
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_key_unittest.cc ('k') | content/common/indexed_db/indexed_db_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698