| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 render processes. | 5 // Common IPC messages used for render processes. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata, | 48 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata, |
| 49 GURL /* url */, | 49 GURL /* url */, |
| 50 base::Time /* expected_response_time */, | 50 base::Time /* expected_response_time */, |
| 51 std::vector<char> /* data */) | 51 std::vector<char> /* data */) |
| 52 | 52 |
| 53 // Notify the browser that this render process can or can't be suddenly | 53 // Notify the browser that this render process can or can't be suddenly |
| 54 // terminated. | 54 // terminated. |
| 55 IPC_MESSAGE_CONTROL1(RenderProcessHostMsg_SuddenTerminationChanged, | 55 IPC_MESSAGE_CONTROL1(RenderProcessHostMsg_SuddenTerminationChanged, |
| 56 bool /* enabled */) | 56 bool /* enabled */) |
| 57 | 57 |
| 58 // Asks the browser for the renderer process memory size stats. | |
| 59 IPC_SYNC_MESSAGE_CONTROL0_2(RenderProcessHostMsg_GetProcessMemorySizes, | |
| 60 size_t /* private_bytes */, | |
| 61 size_t /* shared_bytes */) | |
| 62 | |
| 63 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
| 64 // Request that the browser load a font into shared memory for us. | 59 // Request that the browser load a font into shared memory for us. |
| 65 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, | 60 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, |
| 66 FontDescriptor /* font to load */, | 61 FontDescriptor /* font to load */, |
| 67 uint32 /* buffer size */, | 62 uint32 /* buffer size */, |
| 68 base::SharedMemoryHandle /* font data */, | 63 base::SharedMemoryHandle /* font data */, |
| 69 uint32 /* font id */) | 64 uint32 /* font id */) |
| 70 #elif defined(OS_WIN) | 65 #elif defined(OS_WIN) |
| 71 // Request that the given font characters be loaded by the browser so it's | 66 // Request that the given font characters be loaded by the browser so it's |
| 72 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 67 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 73 // for details. | 68 // for details. |
| 74 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, | 69 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, |
| 75 LOGFONT /* font_data */, | 70 LOGFONT /* font_data */, |
| 76 base::string16 /* characters */) | 71 base::string16 /* characters */) |
| 77 | 72 |
| 78 // Asks the browser for the user's monitor profile. | 73 // Asks the browser for the user's monitor profile. |
| 79 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile, | 74 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile, |
| 80 std::vector<char> /* profile */) | 75 std::vector<char> /* profile */) |
| 81 #endif | 76 #endif |
| OLD | NEW |