| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Asks the browser process to generate a keypair for grabbing a client | 37 // Asks the browser process to generate a keypair for grabbing a client |
| 38 // certificate from a CA (<keygen> tag), and returns the signed public | 38 // certificate from a CA (<keygen> tag), and returns the signed public |
| 39 // key and challenge string. | 39 // key and challenge string. |
| 40 IPC_SYNC_MESSAGE_CONTROL3_1(RenderProcessHostMsg_Keygen, | 40 IPC_SYNC_MESSAGE_CONTROL3_1(RenderProcessHostMsg_Keygen, |
| 41 uint32 /* key size index */, | 41 uint32 /* key size index */, |
| 42 std::string /* challenge string */, | 42 std::string /* challenge string */, |
| 43 GURL /* URL of requestor */, | 43 GURL /* URL of requestor */, |
| 44 std::string /* signed public key and challenge */) | 44 std::string /* signed public key and challenge */) |
| 45 | 45 |
| 46 // Message sent from the renderer to the browser to request that the browser |
| 47 // cache |data| associated with |url| and |expected_response_time|. |
| 48 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata, |
| 49 GURL /* url */, |
| 50 base::Time /* expected_response_time */, |
| 51 std::vector<char> /* data */) |
| 52 |
| 53 // Notify the browser that this render process can or can't be suddenly |
| 54 // terminated. |
| 55 IPC_MESSAGE_CONTROL1(RenderProcessHostMsg_SuddenTerminationChanged, |
| 56 bool /* enabled */) |
| 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 |
| 46 #if defined(OS_MACOSX) | 63 #if defined(OS_MACOSX) |
| 47 // Request that the browser load a font into shared memory for us. | 64 // Request that the browser load a font into shared memory for us. |
| 48 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, | 65 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, |
| 49 FontDescriptor /* font to load */, | 66 FontDescriptor /* font to load */, |
| 50 uint32 /* buffer size */, | 67 uint32 /* buffer size */, |
| 51 base::SharedMemoryHandle /* font data */, | 68 base::SharedMemoryHandle /* font data */, |
| 52 uint32 /* font id */) | 69 uint32 /* font id */) |
| 53 #elif defined(OS_WIN) | 70 #elif defined(OS_WIN) |
| 54 // Request that the given font characters be loaded by the browser so it's | 71 // Request that the given font characters be loaded by the browser so it's |
| 55 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 72 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 56 // for details. | 73 // for details. |
| 57 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, | 74 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, |
| 58 LOGFONT /* font_data */, | 75 LOGFONT /* font_data */, |
| 59 base::string16 /* characters */) | 76 base::string16 /* characters */) |
| 77 |
| 78 // Asks the browser for the user's monitor profile. |
| 79 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile, |
| 80 std::vector<char> /* profile */) |
| 60 #endif | 81 #endif |
| OLD | NEW |