| OLD | NEW |
| 1 // Copyright (c) 2011 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 // Common IPC messages used for child processes. | 5 // Common IPC messages used for child processes. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
| 9 #include "base/tracked_objects.h" |
| 9 #include "base/values.h" | 10 #include "base/values.h" |
| 10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 11 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 12 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 13 | 14 |
| 15 IPC_ENUM_TRAITS(tracked_objects::ThreadData::Status) |
| 16 |
| 14 #undef IPC_MESSAGE_EXPORT | 17 #undef IPC_MESSAGE_EXPORT |
| 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 16 | 19 |
| 17 #define IPC_MESSAGE_START ChildProcessMsgStart | 20 #define IPC_MESSAGE_START ChildProcessMsgStart |
| 18 | 21 |
| 19 // Messages sent from the browser to the child process. | 22 // Messages sent from the browser to the child process. |
| 20 | 23 |
| 21 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 24 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
| 22 // process that it's safe to shutdown. | 25 // process that it's safe to shutdown. |
| 23 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) | 26 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 34 std::vector<std::string> /* excluded_categories */) | 37 std::vector<std::string> /* excluded_categories */) |
| 35 | 38 |
| 36 // Sent to all child processes to disable trace event recording. | 39 // Sent to all child processes to disable trace event recording. |
| 37 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) | 40 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) |
| 38 | 41 |
| 39 // Sent to all child processes to get trace buffer fullness. | 42 // Sent to all child processes to get trace buffer fullness. |
| 40 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) | 43 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) |
| 41 | 44 |
| 42 // Tell the child process to enable or disable the profiler status. | 45 // Tell the child process to enable or disable the profiler status. |
| 43 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, | 46 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, |
| 44 bool /* profiler status */) | 47 tracked_objects::ThreadData::Status /* profiler status */) |
| 45 | 48 |
| 46 // Send to all the child processes to send back profiler data (ThreadData in | 49 // Send to all the child processes to send back profiler data (ThreadData in |
| 47 // tracked_objects). | 50 // tracked_objects). |
| 48 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, | 51 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, |
| 49 int, /* sequence number. */ | 52 int, /* sequence number. */ |
| 50 std::string /* pickled Value of process type. */) | 53 std::string /* pickled Value of process type. */) |
| 51 | 54 |
| 52 // Sent to child processes to dump their handle table. | 55 // Sent to child processes to dump their handle table. |
| 53 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) | 56 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) |
| 54 | 57 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 94 |
| 92 // Release the cached font | 95 // Release the cached font |
| 93 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 96 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 94 #endif // defined(OS_WIN) | 97 #endif // defined(OS_WIN) |
| 95 | 98 |
| 96 // Asks the browser to create a block of shared memory for the child process to | 99 // Asks the browser to create a block of shared memory for the child process to |
| 97 // fill in and pass back to the browser. | 100 // fill in and pass back to the browser. |
| 98 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, | 101 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, |
| 99 uint32 /* buffer size */, | 102 uint32 /* buffer size */, |
| 100 base::SharedMemoryHandle) | 103 base::SharedMemoryHandle) |
| OLD | NEW |