| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #include "base/clipboard.h" | 14 #include "base/clipboard.h" |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/nullable_string16.h" |
| 16 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
| 17 #include "base/gfx/rect.h" | 18 #include "base/gfx/rect.h" |
| 18 #include "base/gfx/native_widget_types.h" | 19 #include "base/gfx/native_widget_types.h" |
| 19 #include "base/shared_memory.h" | 20 #include "base/shared_memory.h" |
| 20 #include "base/values.h" | 21 #include "base/values.h" |
| 21 #include "chrome/common/css_colors.h" | 22 #include "chrome/common/css_colors.h" |
| 22 #include "chrome/common/extensions/update_manifest.h" | 23 #include "chrome/common/extensions/update_manifest.h" |
| 23 #include "chrome/common/transport_dib.h" | 24 #include "chrome/common/transport_dib.h" |
| 24 #include "chrome/common/view_types.h" | 25 #include "chrome/common/view_types.h" |
| 25 #include "ipc/ipc_channel_handle.h" | 26 #include "ipc/ipc_channel_handle.h" |
| (...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 // explicitly drop the lock via navigator.releaseLock(). | 1591 // explicitly drop the lock via navigator.releaseLock(). |
| 1591 IPC_MESSAGE_CONTROL1(ViewHostMsg_DOMStorageUnlock, | 1592 IPC_MESSAGE_CONTROL1(ViewHostMsg_DOMStorageUnlock, |
| 1592 int64 /* storage_area_id */) | 1593 int64 /* storage_area_id */) |
| 1593 | 1594 |
| 1594 // Get the length of a storage area. | 1595 // Get the length of a storage area. |
| 1595 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength, | 1596 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength, |
| 1596 int64 /* storage_area_id */, | 1597 int64 /* storage_area_id */, |
| 1597 unsigned /* length */) | 1598 unsigned /* length */) |
| 1598 | 1599 |
| 1599 // Get a the ith key within a storage area. | 1600 // Get a the ith key within a storage area. |
| 1600 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DOMStorageKey, | 1601 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageKey, |
| 1601 int64 /* storage_area_id */, | 1602 int64 /* storage_area_id */, |
| 1602 unsigned /* index */, | 1603 unsigned /* index */, |
| 1603 string16 /* key */, | 1604 NullableString16 /* key */) |
| 1604 bool /* key_is_null */) | |
| 1605 | 1605 |
| 1606 // Get a value based on a key from a storage area. | 1606 // Get a value based on a key from a storage area. |
| 1607 // TODO(jorlow): Convert value + value_is_null over to a NullableString16 | 1607 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageGetItem, |
| 1608 // once http://crbug.com/17343 is completed. | |
| 1609 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DOMStorageGetItem, | |
| 1610 int64 /* storage_area_id */, | 1608 int64 /* storage_area_id */, |
| 1611 string16 /* key */, | 1609 string16 /* key */, |
| 1612 string16 /* value */, | 1610 NullableString16 /* value */) |
| 1613 bool /* value_is_null */) | |
| 1614 | 1611 |
| 1615 // Set a value that's associated with a key in a storage area. | 1612 // Set a value that's associated with a key in a storage area. |
| 1616 IPC_MESSAGE_CONTROL3(ViewHostMsg_DOMStorageSetItem, | 1613 IPC_MESSAGE_CONTROL3(ViewHostMsg_DOMStorageSetItem, |
| 1617 int64 /* storage_area_id */, | 1614 int64 /* storage_area_id */, |
| 1618 string16 /* key */, | 1615 string16 /* key */, |
| 1619 string16 /* value */) | 1616 string16 /* value */) |
| 1620 | 1617 |
| 1621 // Remove the value associated with a key in a storage area. | 1618 // Remove the value associated with a key in a storage area. |
| 1622 IPC_MESSAGE_CONTROL2(ViewHostMsg_DOMStorageRemoveItem, | 1619 IPC_MESSAGE_CONTROL2(ViewHostMsg_DOMStorageRemoveItem, |
| 1623 int64 /* storage_area_id */, | 1620 int64 /* storage_area_id */, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1687 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
| 1691 FilePath /* the name of the file */, | 1688 FilePath /* the name of the file */, |
| 1692 int32 /* a unique message ID */) | 1689 int32 /* a unique message ID */) |
| 1693 | 1690 |
| 1694 // Asks the browser process to return the size of a DB file | 1691 // Asks the browser process to return the size of a DB file |
| 1695 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1692 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
| 1696 FilePath /* the name of the file */, | 1693 FilePath /* the name of the file */, |
| 1697 int32 /* a unique message ID */) | 1694 int32 /* a unique message ID */) |
| 1698 | 1695 |
| 1699 IPC_END_MESSAGES(ViewHost) | 1696 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |