| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| (...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1749 | 1749 |
| 1750 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1750 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 1751 // default values. If |remember| is true, then the zoom setting is applied to | 1751 // default values. If |remember| is true, then the zoom setting is applied to |
| 1752 // other pages in the site and is saved, otherwise it only applies to this | 1752 // other pages in the site and is saved, otherwise it only applies to this |
| 1753 // tab. | 1753 // tab. |
| 1754 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1754 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 1755 int /* minimum_percent */, | 1755 int /* minimum_percent */, |
| 1756 int /* maximum_percent */, | 1756 int /* maximum_percent */, |
| 1757 bool /* remember */) | 1757 bool /* remember */) |
| 1758 | 1758 |
| 1759 // Asks the browser to create a block of shared memory for the renderer to | |
| 1760 // fill in and pass back to the browser. | |
| 1761 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, | |
| 1762 uint32 /* buffer size */, | |
| 1763 base::SharedMemoryHandle /* browser handle */) | |
| 1764 | |
| 1765 // Notify the browser that this render process can or can't be suddenly | 1759 // Notify the browser that this render process can or can't be suddenly |
| 1766 // terminated. | 1760 // terminated. |
| 1767 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1761 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1768 bool /* enabled */) | 1762 bool /* enabled */) |
| 1769 | 1763 |
| 1770 #if defined(OS_MACOSX) | 1764 #if defined(OS_MACOSX) |
| 1771 // On OSX, we cannot allocated shared memory from within the sandbox, so | 1765 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 1772 // this call exists for the renderer to ask the browser to allocate memory | 1766 // this call exists for the renderer to ask the browser to allocate memory |
| 1773 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1767 // on its behalf. We return a file descriptor to the POSIX shared memory. |
| 1774 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept | 1768 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 media::MediaLogEvent /* event */) | 1941 media::MediaLogEvent /* event */) |
| 1948 | 1942 |
| 1949 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1943 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1950 // being sent back. | 1944 // being sent back. |
| 1951 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1945 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1952 | 1946 |
| 1953 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1947 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1954 // whenever the mouse is unlocked (which may or may not be caused by | 1948 // whenever the mouse is unlocked (which may or may not be caused by |
| 1955 // ViewHostMsg_UnlockMouse). | 1949 // ViewHostMsg_UnlockMouse). |
| 1956 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |