| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 IPC_STRUCT_TRAITS_MEMBER(font_point_size) | 31 IPC_STRUCT_TRAITS_MEMBER(font_point_size) |
| 32 IPC_STRUCT_TRAITS_END() | 32 IPC_STRUCT_TRAITS_END() |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 //////////////////////////////////////////////////////////////////////////////// | 35 //////////////////////////////////////////////////////////////////////////////// |
| 36 // Messages sent from the browser to the render process. | 36 // Messages sent from the browser to the render process. |
| 37 | 37 |
| 38 //////////////////////////////////////////////////////////////////////////////// | 38 //////////////////////////////////////////////////////////////////////////////// |
| 39 // Messages sent from the render process to the browser. | 39 // Messages sent from the render process to the browser. |
| 40 | 40 |
| 41 // Asks the browser process to generate a keypair for grabbing a client | |
| 42 // certificate from a CA (<keygen> tag), and returns the signed public | |
| 43 // key and challenge string. | |
| 44 IPC_SYNC_MESSAGE_CONTROL4_1(RenderProcessHostMsg_Keygen, | |
| 45 uint32_t /* key size index */, | |
| 46 std::string /* challenge string */, | |
| 47 GURL /* URL of requestor */, | |
| 48 GURL /* Origin of top-level frame */, | |
| 49 std::string /* signed public key and challenge */) | |
| 50 | |
| 51 // Message sent from the renderer to the browser to request that the browser | 41 // Message sent from the renderer to the browser to request that the browser |
| 52 // cache |data| associated with |url| and |expected_response_time|. | 42 // cache |data| associated with |url| and |expected_response_time|. |
| 53 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata, | 43 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata, |
| 54 GURL /* url */, | 44 GURL /* url */, |
| 55 base::Time /* expected_response_time */, | 45 base::Time /* expected_response_time */, |
| 56 std::vector<char> /* data */) | 46 std::vector<char> /* data */) |
| 57 | 47 |
| 58 // Message sent from the renderer to the browser to request that the browser | 48 // Message sent from the renderer to the browser to request that the browser |
| 59 // cache |data| for the specified CacheStorage entry. | 49 // cache |data| for the specified CacheStorage entry. |
| 60 IPC_MESSAGE_CONTROL5( | 50 IPC_MESSAGE_CONTROL5( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 bool /* enabled */) | 61 bool /* enabled */) |
| 72 | 62 |
| 73 #if defined(OS_MACOSX) | 63 #if defined(OS_MACOSX) |
| 74 // 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. |
| 75 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, | 65 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, |
| 76 FontDescriptor /* font to load */, | 66 FontDescriptor /* font to load */, |
| 77 uint32_t /* buffer size */, | 67 uint32_t /* buffer size */, |
| 78 base::SharedMemoryHandle /* font data */, | 68 base::SharedMemoryHandle /* font data */, |
| 79 uint32_t /* font id */) | 69 uint32_t /* font id */) |
| 80 #endif | 70 #endif |
| OLD | NEW |