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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 | 974 |
975 // Asks the browser for a unique routing ID. | 975 // Asks the browser for a unique routing ID. |
976 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, | 976 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, |
977 int /* routing_id */) | 977 int /* routing_id */) |
978 | 978 |
979 // Asks the browser for the default audio hardware configuration. | 979 // Asks the browser for the default audio hardware configuration. |
980 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig, | 980 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig, |
981 media::AudioParameters /* input parameters */, | 981 media::AudioParameters /* input parameters */, |
982 media::AudioParameters /* output parameters */) | 982 media::AudioParameters /* output parameters */) |
983 | 983 |
984 // Asks the browser for CPU usage of the renderer process in percents. | |
985 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, | |
986 int /* CPU usage in percents */) | |
987 | |
988 // Asks the browser for the renderer process memory size stats. | 984 // Asks the browser for the renderer process memory size stats. |
989 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes, | 985 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes, |
990 size_t /* private_bytes */, | 986 size_t /* private_bytes */, |
991 size_t /* shared_bytes */) | 987 size_t /* shared_bytes */) |
992 | 988 |
993 // These three messages are sent to the parent RenderViewHost to display the | 989 // These three messages are sent to the parent RenderViewHost to display the |
994 // page/widget that was created by | 990 // page/widget that was created by |
995 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id | 991 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id |
996 // refers to the id that was returned from the Create message above. | 992 // refers to the id that was returned from the Create message above. |
997 // The initial_position parameter is a rectangle in screen coordinates. | 993 // The initial_position parameter is a rectangle in screen coordinates. |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 // Since the browser keeps handles to the allocated transport DIBs, this | 1626 // Since the browser keeps handles to the allocated transport DIBs, this |
1631 // message is sent to tell the browser that it may release them when the | 1627 // message is sent to tell the browser that it may release them when the |
1632 // renderer is finished with them. | 1628 // renderer is finished with them. |
1633 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1629 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1634 TransportDIB::Id /* DIB id */) | 1630 TransportDIB::Id /* DIB id */) |
1635 #endif | 1631 #endif |
1636 | 1632 |
1637 // Adding a new message? Stick to the sort order above: first platform | 1633 // Adding a new message? Stick to the sort order above: first platform |
1638 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1634 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1639 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1635 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |