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 <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 | 780 |
781 // Tell the utility process to parse the given JSON data and verify its | 781 // Tell the utility process to parse the given JSON data and verify its |
782 // validity. | 782 // validity. |
783 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackWebResource, | 783 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackWebResource, |
784 std::string /* JSON data */) | 784 std::string /* JSON data */) |
785 | 785 |
786 // Tell the utility process to parse the given xml document. | 786 // Tell the utility process to parse the given xml document. |
787 IPC_MESSAGE_CONTROL1(UtilityMsg_ParseUpdateManifest, | 787 IPC_MESSAGE_CONTROL1(UtilityMsg_ParseUpdateManifest, |
788 std::string /* xml document contents */) | 788 std::string /* xml document contents */) |
789 | 789 |
| 790 // Socket Stream messages: |
| 791 // These are messages from the browser to the SocketStreamHandle on |
| 792 // a renderer. |
| 793 |
| 794 // A |socket_id| is assigned by ViewHostMsg_SocketStream_Connect. |
| 795 // The Socket Stream is connected. The SocketStreamHandle should keep track |
| 796 // of how much it has pending (how much it has requested to be sent) and |
| 797 // shouldn't go over |max_pending_send_allowed| bytes. |
| 798 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_Connected, |
| 799 int /* socket_id */, |
| 800 int /* max_pending_send_allowed */) |
| 801 |
| 802 // |data| is received on the Socket Stream. |
| 803 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_ReceivedData, |
| 804 int /* socket_id */, |
| 805 std::vector<char> /* data */) |
| 806 |
| 807 // |amount_sent| bytes of data requested by |
| 808 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream. |
| 809 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData, |
| 810 int /* socket_id */, |
| 811 int /* amount_sent */) |
| 812 |
| 813 // The Socket Stream is closed. |
| 814 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed, |
| 815 int /* socket_id */) |
| 816 |
790 IPC_END_MESSAGES(View) | 817 IPC_END_MESSAGES(View) |
791 | 818 |
792 | 819 |
793 //----------------------------------------------------------------------------- | 820 //----------------------------------------------------------------------------- |
794 // TabContents messages | 821 // TabContents messages |
795 // These are messages sent from the renderer to the browser process. | 822 // These are messages sent from the renderer to the browser process. |
796 | 823 |
797 IPC_BEGIN_MESSAGES(ViewHost) | 824 IPC_BEGIN_MESSAGES(ViewHost) |
798 // Sent by the renderer when it is creating a new window. The browser creates | 825 // Sent by the renderer when it is creating a new window. The browser creates |
799 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 826 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 // Asks the browser process to return the attributes of a DB file | 1860 // Asks the browser process to return the attributes of a DB file |
1834 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1861 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
1835 FilePath /* the name of the file */, | 1862 FilePath /* the name of the file */, |
1836 int32 /* a unique message ID */) | 1863 int32 /* a unique message ID */) |
1837 | 1864 |
1838 // Asks the browser process to return the size of a DB file | 1865 // Asks the browser process to return the size of a DB file |
1839 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1866 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
1840 FilePath /* the name of the file */, | 1867 FilePath /* the name of the file */, |
1841 int32 /* a unique message ID */) | 1868 int32 /* a unique message ID */) |
1842 | 1869 |
| 1870 //--------------------------------------------------------------------------- |
| 1871 // Socket Stream messages: |
| 1872 // These are messages from the SocketStreamHandle to the browser. |
| 1873 |
| 1874 // Open new Socket Stream for the |socket_url| identified by |socket_id| |
| 1875 // in the renderer process. |
| 1876 // The browser starts connecting asynchronously. |
| 1877 // Once Socket Stream connection is established, the browser will send |
| 1878 // ViewMsg_SocketStream_Connected back. |
| 1879 IPC_MESSAGE_CONTROL2(ViewHostMsg_SocketStream_Connect, |
| 1880 GURL /* socket_url */, |
| 1881 int /* socket_id */) |
| 1882 |
| 1883 // Request to send data on the Socket Stream. |
| 1884 // SocketStreamHandle can send data at most |max_pending_send_allowed| bytes, |
| 1885 // which is given by ViewMsg_SocketStream_Connected at any time. |
| 1886 // The number of pending bytes can be tracked by size of |data| sent |
| 1887 // and |amount_sent| parameter of ViewMsg_SocketStream_DataSent. |
| 1888 // That is, the following constraints is applied: |
| 1889 // (accumulated total of |data|) - (accumulated total of |amount_sent|) |
| 1890 // <= |max_pending_send_allowed| |
| 1891 // If the SocketStreamHandle ever tries to exceed the |
| 1892 // |max_pending_send_allowed|, the connection will be closed. |
| 1893 IPC_MESSAGE_CONTROL2(ViewHostMsg_SocketStream_SendData, |
| 1894 int /* socket_id */, |
| 1895 std::vector<char> /* data */) |
| 1896 |
| 1897 // Request to close the Socket Stream. |
| 1898 // The browser will send ViewMsg_SocketStream_Closed back when the Socket |
| 1899 // Stream is completely closed. |
| 1900 IPC_MESSAGE_CONTROL1(ViewHostMsg_SocketStream_Close, |
| 1901 int /* socket_id */) |
| 1902 |
1843 IPC_END_MESSAGES(ViewHost) | 1903 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |