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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 // Storage events are broadcast to renderer processes. | 792 // Storage events are broadcast to renderer processes. |
793 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent, | 793 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent, |
794 ViewMsg_DOMStorageEvent_Params) | 794 ViewMsg_DOMStorageEvent_Params) |
795 | 795 |
796 #if defined(IPC_MESSAGE_LOG_ENABLED) | 796 #if defined(IPC_MESSAGE_LOG_ENABLED) |
797 // Tell the renderer process to begin or end IPC message logging. | 797 // Tell the renderer process to begin or end IPC message logging. |
798 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, | 798 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, |
799 bool /* on or off */) | 799 bool /* on or off */) |
800 #endif | 800 #endif |
801 | 801 |
802 //--------------------------------------------------------------------------- | |
803 // Utility process messages: | |
804 // These are messages from the browser to the utility process. They're here | |
805 // because we ran out of spare message types. | |
806 | |
807 // Tell the utility process to unpack the given extension file in its | |
808 // directory and verify that it is valid. | |
809 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackExtension, | |
810 FilePath /* extension_filename */) | |
811 | |
812 // Tell the utility process to parse the given JSON data and verify its | |
813 // validity. | |
814 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackWebResource, | |
815 std::string /* JSON data */) | |
816 | |
817 // Tell the utility process to parse the given xml document. | |
818 IPC_MESSAGE_CONTROL1(UtilityMsg_ParseUpdateManifest, | |
819 std::string /* xml document contents */) | |
820 | |
821 // Socket Stream messages: | 802 // Socket Stream messages: |
822 // These are messages from the browser to the SocketStreamHandle on | 803 // These are messages from the browser to the SocketStreamHandle on |
823 // a renderer. | 804 // a renderer. |
824 | 805 |
825 // A |socket_id| is assigned by ViewHostMsg_SocketStream_Connect. | 806 // A |socket_id| is assigned by ViewHostMsg_SocketStream_Connect. |
826 // The Socket Stream is connected. The SocketStreamHandle should keep track | 807 // The Socket Stream is connected. The SocketStreamHandle should keep track |
827 // of how much it has pending (how much it has requested to be sent) and | 808 // of how much it has pending (how much it has requested to be sent) and |
828 // shouldn't go over |max_pending_send_allowed| bytes. | 809 // shouldn't go over |max_pending_send_allowed| bytes. |
829 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_Connected, | 810 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_Connected, |
830 int /* socket_id */, | 811 int /* socket_id */, |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1911 // Clear the storage area. | 1892 // Clear the storage area. |
1912 IPC_MESSAGE_CONTROL2(ViewHostMsg_DOMStorageClear, | 1893 IPC_MESSAGE_CONTROL2(ViewHostMsg_DOMStorageClear, |
1913 int64 /* storage_area_id */, | 1894 int64 /* storage_area_id */, |
1914 GURL /* url */) | 1895 GURL /* url */) |
1915 | 1896 |
1916 // Get file size in bytes. Set result to -1 if failed to get the file size. | 1897 // Get file size in bytes. Set result to -1 if failed to get the file size. |
1917 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, | 1898 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, |
1918 FilePath /* path */, | 1899 FilePath /* path */, |
1919 int64 /* result */) | 1900 int64 /* result */) |
1920 | 1901 |
1921 //--------------------------------------------------------------------------- | |
1922 // Utility process host messages: | |
1923 // These are messages from the utility process to the browser. They're here | |
1924 // because we ran out of spare message types. | |
1925 | |
1926 // Reply when the utility process is done unpacking an extension. |manifest| | |
1927 // is the parsed manifest.json file. |catalogs| is the list of all parsed | |
1928 // message catalogs and relative paths to them. | |
1929 // The unpacker should also have written out a file containing decoded images | |
1930 // from the extension. See ExtensionUnpacker for details. | |
1931 IPC_MESSAGE_CONTROL2(UtilityHostMsg_UnpackExtension_Succeeded, | |
1932 DictionaryValue /* manifest */, | |
1933 DictionaryValue /* catalogs */) | |
1934 | |
1935 // Reply when the utility process has failed while unpacking an extension. | |
1936 // |error_message| is a user-displayable explanation of what went wrong. | |
1937 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackExtension_Failed, | |
1938 std::string /* error_message, if any */) | |
1939 | |
1940 // Reply when the utility process is done unpacking and parsing JSON data | |
1941 // from a web resource. | |
1942 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Succeeded, | |
1943 DictionaryValue /* json data */) | |
1944 | |
1945 // Reply when the utility process has failed while unpacking and parsing a | |
1946 // web resource. |error_message| is a user-readable explanation of what | |
1947 // went wrong. | |
1948 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, | |
1949 std::string /* error_message, if any */) | |
1950 | |
1951 // Reply when the utility process has succeeded in parsing an update manifest | |
1952 // xml document. | |
1953 IPC_MESSAGE_CONTROL1(UtilityHostMsg_ParseUpdateManifest_Succeeded, | |
1954 std::vector<UpdateManifest::Result> /* updates */) | |
1955 | |
1956 // Reply when an error occured parsing the update manifest. |error_message| | |
1957 // is a description of what went wrong suitable for logging. | |
1958 IPC_MESSAGE_CONTROL1(UtilityHostMsg_ParseUpdateManifest_Failed, | |
1959 std::string /* error_message, if any */) | |
1960 | |
1961 // Sent by the renderer process to acknowledge receipt of a | 1902 // Sent by the renderer process to acknowledge receipt of a |
1962 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. | 1903 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. |
1963 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) | 1904 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) |
1964 | 1905 |
1965 // Asks the browser process to open a DB file with the given name | 1906 // Asks the browser process to open a DB file with the given name |
1966 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseOpenFile, | 1907 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseOpenFile, |
1967 string16 /* vfs file name */, | 1908 string16 /* vfs file name */, |
1968 int /* desired flags */, | 1909 int /* desired flags */, |
1969 int32 /* a unique message ID */) | 1910 int32 /* a unique message ID */) |
1970 | 1911 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 string16 /* word */, | 1998 string16 /* word */, |
2058 int /* document tag */, | 1999 int /* document tag */, |
2059 bool /* correct */) | 2000 bool /* correct */) |
2060 | 2001 |
2061 IPC_SYNC_MESSAGE_CONTROL1_1( | 2002 IPC_SYNC_MESSAGE_CONTROL1_1( |
2062 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 2003 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
2063 string16 /* word */, | 2004 string16 /* word */, |
2064 std::vector<string16> /* suggestions */) | 2005 std::vector<string16> /* suggestions */) |
2065 | 2006 |
2066 IPC_END_MESSAGES(ViewHost) | 2007 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |