| 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 // Used to determine whether a renderer can grant itself universal access. |
| 59 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetUniversalAccessDisposition, |
| 60 bool /* is universal access grantable? */) |
| 61 |
| 58 #if defined(OS_MACOSX) | 62 #if defined(OS_MACOSX) |
| 59 // Request that the browser load a font into shared memory for us. | 63 // Request that the browser load a font into shared memory for us. |
| 60 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, | 64 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, |
| 61 FontDescriptor /* font to load */, | 65 FontDescriptor /* font to load */, |
| 62 uint32 /* buffer size */, | 66 uint32 /* buffer size */, |
| 63 base::SharedMemoryHandle /* font data */, | 67 base::SharedMemoryHandle /* font data */, |
| 64 uint32 /* font id */) | 68 uint32 /* font id */) |
| 65 #elif defined(OS_WIN) | 69 #elif defined(OS_WIN) |
| 66 // Request that the given font characters be loaded by the browser so it's | 70 // Request that the given font characters be loaded by the browser so it's |
| 67 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 71 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 68 // for details. | 72 // for details. |
| 69 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, | 73 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, |
| 70 LOGFONT /* font_data */, | 74 LOGFONT /* font_data */, |
| 71 base::string16 /* characters */) | 75 base::string16 /* characters */) |
| 72 | 76 |
| 73 // Asks the browser for the user's monitor profile. | 77 // Asks the browser for the user's monitor profile. |
| 74 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile, | 78 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile, |
| 75 std::vector<char> /* profile */) | 79 std::vector<char> /* profile */) |
| 76 #endif | 80 #endif |
| OLD | NEW |