| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <map> | 5 #include <map> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 string16 /* the origin */, | 907 string16 /* the origin */, |
| 908 string16 /* the database name */, | 908 string16 /* the database name */, |
| 909 int64 /* the new database size */, | 909 int64 /* the new database size */, |
| 910 int64 /* space available to origin */) | 910 int64 /* space available to origin */) |
| 911 | 911 |
| 912 // Asks the child process to close a database immediately | 912 // Asks the child process to close a database immediately |
| 913 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately, | 913 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately, |
| 914 string16 /* the origin */, | 914 string16 /* the origin */, |
| 915 string16 /* the database name */) | 915 string16 /* the database name */) |
| 916 | 916 |
| 917 // Storage events are broadcast to renderer processes. | |
| 918 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent, | |
| 919 ViewMsg_DOMStorageEvent_Params) | |
| 920 | |
| 921 // IDBCallback message handlers. | 917 // IDBCallback message handlers. |
| 922 IPC_MESSAGE_CONTROL1(ViewMsg_IDBCallbacksSuccessNull, | 918 IPC_MESSAGE_CONTROL1(ViewMsg_IDBCallbacksSuccessNull, |
| 923 int32 /* response_id */) | 919 int32 /* response_id */) |
| 924 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBCursor, | 920 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBCursor, |
| 925 int32 /* response_id */, | 921 int32 /* response_id */, |
| 926 int32 /* cursor_id */) | 922 int32 /* cursor_id */) |
| 927 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBDatabase, | 923 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBDatabase, |
| 928 int32 /* response_id */, | 924 int32 /* response_id */, |
| 929 int32 /* idb_database_id */) | 925 int32 /* idb_database_id */) |
| 930 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIndexedDBKey, | 926 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIndexedDBKey, |
| (...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2362 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, | 2358 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, |
| 2363 bool /* enable */) | 2359 bool /* enable */) |
| 2364 | 2360 |
| 2365 // Message sent from the renderer to the browser to request that the browser | 2361 // Message sent from the renderer to the browser to request that the browser |
| 2366 // cache |data| associated with |url|. | 2362 // cache |data| associated with |url|. |
| 2367 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, | 2363 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, |
| 2368 GURL /* url */, | 2364 GURL /* url */, |
| 2369 double /* expected_response_time */, | 2365 double /* expected_response_time */, |
| 2370 std::vector<char> /* data */) | 2366 std::vector<char> /* data */) |
| 2371 | 2367 |
| 2372 // Get the storage area id for a particular origin within a namespace. | |
| 2373 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId, | |
| 2374 int64 /* namespace_id */, | |
| 2375 string16 /* origin */, | |
| 2376 int64 /* storage_area_id */) | |
| 2377 | |
| 2378 // Get the length of a storage area. | |
| 2379 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength, | |
| 2380 int64 /* storage_area_id */, | |
| 2381 unsigned /* length */) | |
| 2382 | |
| 2383 // Get a the ith key within a storage area. | |
| 2384 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageKey, | |
| 2385 int64 /* storage_area_id */, | |
| 2386 unsigned /* index */, | |
| 2387 NullableString16 /* key */) | |
| 2388 | |
| 2389 // Get a value based on a key from a storage area. | |
| 2390 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageGetItem, | |
| 2391 int64 /* storage_area_id */, | |
| 2392 string16 /* key */, | |
| 2393 NullableString16 /* value */) | |
| 2394 | |
| 2395 // Set a value that's associated with a key in a storage area. | |
| 2396 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_DOMStorageSetItem, | |
| 2397 int64 /* storage_area_id */, | |
| 2398 string16 /* key */, | |
| 2399 string16 /* value */, | |
| 2400 GURL /* url */, | |
| 2401 WebKit::WebStorageArea::Result /* result */, | |
| 2402 NullableString16 /* old_value */) | |
| 2403 | |
| 2404 // Remove the value associated with a key in a storage area. | |
| 2405 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_DOMStorageRemoveItem, | |
| 2406 int64 /* storage_area_id */, | |
| 2407 string16 /* key */, | |
| 2408 GURL /* url */, | |
| 2409 NullableString16 /* old_value */) | |
| 2410 | |
| 2411 // Clear the storage area. | |
| 2412 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageClear, | |
| 2413 int64 /* storage_area_id */, | |
| 2414 GURL /* url */, | |
| 2415 bool /* something_cleared */) | |
| 2416 | |
| 2417 // WebIDBCursor::direction() message. | 2368 // WebIDBCursor::direction() message. |
| 2418 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorDirection, | 2369 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorDirection, |
| 2419 int32, /* idb_cursor_id */ | 2370 int32, /* idb_cursor_id */ |
| 2420 int32 /* direction */) | 2371 int32 /* direction */) |
| 2421 | 2372 |
| 2422 // WebIDBCursor::key() message. | 2373 // WebIDBCursor::key() message. |
| 2423 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorKey, | 2374 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorKey, |
| 2424 int32, /* idb_cursor_id */ | 2375 int32, /* idb_cursor_id */ |
| 2425 IndexedDBKey) | 2376 IndexedDBKey) |
| 2426 | 2377 |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3044 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperQueryFile, | 2995 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperQueryFile, |
| 3045 FilePath /* path */, | 2996 FilePath /* path */, |
| 3046 base::PlatformFileInfo, /* info */ | 2997 base::PlatformFileInfo, /* info */ |
| 3047 base::PlatformFileError /* error_code */) | 2998 base::PlatformFileError /* error_code */) |
| 3048 | 2999 |
| 3049 // Get the directory's contents. | 3000 // Get the directory's contents. |
| 3050 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, | 3001 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, |
| 3051 FilePath /* path */, | 3002 FilePath /* path */, |
| 3052 PepperDirContents, /* contents */ | 3003 PepperDirContents, /* contents */ |
| 3053 base::PlatformFileError /* error_code */) | 3004 base::PlatformFileError /* error_code */) |
| OLD | NEW |