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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 155845: DOM Storage: Add browser-process IPC code + tweak the WebKit Thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 1465
1466 // Message sent from the renderer to the browser to request that the browser 1466 // Message sent from the renderer to the browser to request that the browser
1467 // close all idle sockets. Used for debugging/testing. 1467 // close all idle sockets. Used for debugging/testing.
1468 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseIdleConnections) 1468 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseIdleConnections)
1469 1469
1470 // Message sent from the renderer to the browser to request that the browser 1470 // Message sent from the renderer to the browser to request that the browser
1471 // close all idle sockets. Used for debugging/testing. 1471 // close all idle sockets. Used for debugging/testing.
1472 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode, 1472 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode,
1473 bool /* enabled */) 1473 bool /* enabled */)
1474 1474
1475 // There's one LocalStorage namespace per profile and one SessionStorage
1476 // namespace per tab. This will find or create the proper namespace.
1477 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageNamespaceId,
1478 bool /* is_local_storage */,
1479 int64 /* new_namespace_id */)
1480
1481 // Used by SessionStorage to clone a namespace per the spec.
1482 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageCloneNamespaceId,
1483 int64 /* namespace_id to clone */,
1484 int64 /* new_namespace_id */)
1485
1486 // Explicitly drop a reference to a namespace. This is done implicitly
1487 // for all namespaces owned by a renderer process when it dies.
1488 IPC_MESSAGE_CONTROL1(ViewHostMsg_DOMStorageDerefNamespaceId,
1489 int64 /* namespace_id */)
1490
1491 // Get the storage area id for a particular origin within a namespace.
1492 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId,
1493 int64 /* namespace_id */,
1494 string16 /* origin */,
1495 int64 /* storage_area_id */)
1496
1497 // Lock a particular origin (per the DOM Storage spec).
1498 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_DOMStorageLock,
1499 int64 /* storage_area_id */,
1500 bool /* invalidate_cache */,
1501 size_t /* bytes_left_in_quota */)
1502
1503 // Release the lock on a particular storage area. This should happen
1504 // whenever we exit a script region, do something synchronous, or
1505 // explicitly drop the lock via navigator.releaseLock().
1506 IPC_MESSAGE_CONTROL1(ViewHostMsg_DOMStorageUnlock,
1507 int64 /* storage_area_id */)
1508
1509 // Get the length of a storage area.
1510 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength,
1511 int64 /* storage_area_id */,
1512 unsigned /* length */)
1513
1514 // Get a the ith key within a storage area.
1515 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DOMStorageKey,
1516 int64 /* storage_area_id */,
1517 unsigned /* index */,
1518 bool /* key_exception */,
1519 string16 /* key */)
1520
1521 // Get a value based on a key from a storage area.
1522 // TODO(jorlow): Convert value + value_is_null over to a NullableString16
1523 // once http://crbug.com/17343 is completed.
1524 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DOMStorageGetItem,
1525 int64 /* storage_area_id */,
1526 string16 /* key */,
1527 string16 /* value */,
1528 bool /* value_is_null */)
1529
1530 // Set a value that's associated with a key in a storage area.
1531 IPC_MESSAGE_CONTROL3(ViewHostMsg_DOMStorageSetItem,
1532 int64 /* storage_area_id */,
1533 string16 /* key */,
1534 string16 /* value */)
1535
1536 // Remove the value associated with a key in a storage area.
1537 IPC_MESSAGE_CONTROL2(ViewHostMsg_DOMStorageRemoveItem,
1538 int64 /* storage_area_id */,
1539 string16 /* key */)
1540
1541 // Clear the storage area.
1542 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageClear,
1543 int64 /* storage_area_id */,
1544 size_t /* bytes_left_in_quota */)
1545
1475 // Get file size in bytes. Set result to -1 if failed to get the file size. 1546 // Get file size in bytes. Set result to -1 if failed to get the file size.
1476 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, 1547 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize,
1477 FilePath /* path */, 1548 FilePath /* path */,
1478 int64 /* result */) 1549 int64 /* result */)
1479 1550
1480 //--------------------------------------------------------------------------- 1551 //---------------------------------------------------------------------------
1481 // Utility process host messages: 1552 // Utility process host messages:
1482 // These are messages from the utility process to the browser. They're here 1553 // These are messages from the utility process to the browser. They're here
1483 // because we ran out of spare message types. 1554 // because we ran out of spare message types.
1484 1555
(...skipping 18 matching lines...) Expand all
1503 // web resource. |error_message| is a user-readable explanation of what 1574 // web resource. |error_message| is a user-readable explanation of what
1504 // went wrong. 1575 // went wrong.
1505 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, 1576 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed,
1506 std::string /* error_message, if any */) 1577 std::string /* error_message, if any */)
1507 1578
1508 // Sent by the renderer process to acknowledge receipt of a 1579 // Sent by the renderer process to acknowledge receipt of a
1509 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. 1580 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame.
1510 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) 1581 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted)
1511 1582
1512 IPC_END_MESSAGES(ViewHost) 1583 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698