1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Common IPC messages used for render processes.
// Multiply-included message file, hence no include guard.
#include <stdint.h>
#include <string>
#include "base/memory/shared_memory.h"
#include "build/build_config.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
#include "url/gurl.h"
#include "url/origin.h"
#if defined(OS_MACOSX)
#include "content/common/mac/font_descriptor.h"
#endif
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START RenderProcessMsgStart
#if defined(OS_MACOSX)
IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
IPC_STRUCT_TRAITS_MEMBER(font_name)
IPC_STRUCT_TRAITS_MEMBER(font_point_size)
IPC_STRUCT_TRAITS_END()
#endif
////////////////////////////////////////////////////////////////////////////////
// Messages sent from the browser to the render process.
////////////////////////////////////////////////////////////////////////////////
// Messages sent from the render process to the browser.
// Message sent from the renderer to the browser to request that the browser
// cache |data| associated with |url| and |expected_response_time|.
IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata,
GURL /* url */,
base::Time /* expected_response_time */,
std::vector<char> /* data */)
// Message sent from the renderer to the browser to request that the browser
// cache |data| for the specified CacheStorage entry.
IPC_MESSAGE_CONTROL5(
RenderProcessHostMsg_DidGenerateCacheableMetadataInCacheStorage,
GURL /* url */,
base::Time /* expected_response_time */,
std::vector<char> /* data */,
url::Origin /* cache_storage_origin*/,
std::string /* cache_storage_cache_name */)
// Notify the browser that this render process can or can't be suddenly
// terminated.
IPC_MESSAGE_CONTROL1(RenderProcessHostMsg_SuddenTerminationChanged,
bool /* enabled */)
#if defined(OS_MACOSX)
// Request that the browser load a font into shared memory for us.
IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont,
FontDescriptor /* font to load */,
uint32_t /* buffer size */,
base::SharedMemoryHandle /* font data */,
uint32_t /* font id */)
#endif
|