OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
799 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 799 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
800 // | 800 // |
801 // For example, suppose the history of page_ids in the new tab's RenderView | 801 // For example, suppose the history of page_ids in the new tab's RenderView |
802 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | 802 // is [4 7 8]. This is merged into an existing tab with 3 history items, and |
803 // all pages in the new tab with page_id >= 7 are to be preserved. | 803 // all pages in the new tab with page_id >= 7 are to be preserved. |
804 // The resulting page history is [-1 -1 -1 7 8]. | 804 // The resulting page history is [-1 -1 -1 7 8]. |
805 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, | 805 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, |
806 int, /* merge_history_length */ | 806 int, /* merge_history_length */ |
807 int32 /* minimum_page_id */) | 807 int32 /* minimum_page_id */) |
808 | 808 |
809 // Tells the renderer the browser's notion of its process ID. | |
810 // Some subsystems, like LatencyInfo, require this to be known to the renderer. | |
811 IPC_MESSAGE_CONTROL1(ViewMsg_SetRendererProcessID, | |
812 int64 /* process_id */) | |
jln (very slow on Chromium)
2013/10/07 18:25:42
Please, use base::ProcessId
| |
813 | |
809 // Tells the renderer to create a new view. | 814 // Tells the renderer to create a new view. |
810 // This message is slightly different, the view it takes (via | 815 // This message is slightly different, the view it takes (via |
811 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 816 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
812 // non-view control message. | 817 // non-view control message. |
813 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 818 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
814 ViewMsg_New_Params) | 819 ViewMsg_New_Params) |
815 | 820 |
816 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 821 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
817 // similar to the new command, but used when the renderer created a view | 822 // similar to the new command, but used when the renderer created a view |
818 // first, and we need to update it. | 823 // first, and we need to update it. |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1854 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 1859 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
1855 bool /* has_handlers */) | 1860 bool /* has_handlers */) |
1856 | 1861 |
1857 // A message from HTML-based UI. When (trusted) Javascript calls | 1862 // A message from HTML-based UI. When (trusted) Javascript calls |
1858 // send(message, args), this message is sent to the browser. | 1863 // send(message, args), this message is sent to the browser. |
1859 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 1864 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
1860 GURL /* source_url */, | 1865 GURL /* source_url */, |
1861 std::string /* message */, | 1866 std::string /* message */, |
1862 base::ListValue /* args */) | 1867 base::ListValue /* args */) |
1863 | 1868 |
1864 // Requests a snapshot of the given window. | |
1865 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetWindowSnapshot, | |
1866 int /* snapshot_id */) | |
1867 | |
1868 // A renderer sends this to the browser process when it wants to create a ppapi | 1869 // A renderer sends this to the browser process when it wants to create a ppapi |
1869 // plugin. The browser will create the plugin process if necessary, and will | 1870 // plugin. The browser will create the plugin process if necessary, and will |
1870 // return a handle to the channel on success. | 1871 // return a handle to the channel on success. |
1871 // | 1872 // |
1872 // The plugin_child_id is the ChildProcessHost ID assigned in the browser | 1873 // The plugin_child_id is the ChildProcessHost ID assigned in the browser |
1873 // process. This ID is valid only in the context of the browser process and is | 1874 // process. This ID is valid only in the context of the browser process and is |
1874 // used to identify the proper process when the renderer notifies it that the | 1875 // used to identify the proper process when the renderer notifies it that the |
1875 // plugin is hung. | 1876 // plugin is hung. |
1876 // | 1877 // |
1877 // On error an empty string and null handles are returned. | 1878 // On error an empty string and null handles are returned. |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2378 // synchronously (see crbug.com/120597). This IPC message sends the character | 2379 // synchronously (see crbug.com/120597). This IPC message sends the character |
2379 // bounds after every composition change to always have correct bound info. | 2380 // bounds after every composition change to always have correct bound info. |
2380 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2381 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2381 gfx::Range /* composition range */, | 2382 gfx::Range /* composition range */, |
2382 std::vector<gfx::Rect> /* character bounds */) | 2383 std::vector<gfx::Rect> /* character bounds */) |
2383 #endif | 2384 #endif |
2384 | 2385 |
2385 // Adding a new message? Stick to the sort order above: first platform | 2386 // Adding a new message? Stick to the sort order above: first platform |
2386 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2387 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2387 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2388 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |