Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: content/common/render_process_messages.h

Issue 1915833002: Introduce Platform::cacheMetadataInCacheStorage() to store V8 code cache in CacheStorage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments in render_process_messages.h Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 11
12 #include "base/memory/shared_memory.h" 12 #include "base/memory/shared_memory.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_message_utils.h" 15 #include "ipc/ipc_message_utils.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 #include "url/origin.h"
17 18
18 #if defined(OS_MACOSX) 19 #if defined(OS_MACOSX)
19 #include "content/common/mac/font_descriptor.h" 20 #include "content/common/mac/font_descriptor.h"
20 #endif 21 #endif
21 22
22 #undef IPC_MESSAGE_EXPORT 23 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 24 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 25
25 #define IPC_MESSAGE_START RenderProcessMsgStart 26 #define IPC_MESSAGE_START RenderProcessMsgStart
26 27
(...skipping 20 matching lines...) Expand all
47 GURL /* Origin of top-level frame */, 48 GURL /* Origin of top-level frame */,
48 std::string /* signed public key and challenge */) 49 std::string /* signed public key and challenge */)
49 50
50 // Message sent from the renderer to the browser to request that the browser 51 // Message sent from the renderer to the browser to request that the browser
51 // cache |data| associated with |url| and |expected_response_time|. 52 // cache |data| associated with |url| and |expected_response_time|.
52 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata, 53 IPC_MESSAGE_CONTROL3(RenderProcessHostMsg_DidGenerateCacheableMetadata,
53 GURL /* url */, 54 GURL /* url */,
54 base::Time /* expected_response_time */, 55 base::Time /* expected_response_time */,
55 std::vector<char> /* data */) 56 std::vector<char> /* data */)
56 57
58 // Message sent from the renderer to the browser to request that the browser
59 // cache |data| for the specified CacheStorage entry.
60 IPC_MESSAGE_CONTROL5(
61 RenderProcessHostMsg_DidGenerateCacheableMetadataInCacheStorage,
62 GURL /* url */,
63 base::Time /* expected_response_time */,
64 std::vector<char> /* data */,
65 url::Origin /* cache_storage_origin*/,
66 std::string /* cache_storage_cache_name */)
67
57 // Notify the browser that this render process can or can't be suddenly 68 // Notify the browser that this render process can or can't be suddenly
58 // terminated. 69 // terminated.
59 IPC_MESSAGE_CONTROL1(RenderProcessHostMsg_SuddenTerminationChanged, 70 IPC_MESSAGE_CONTROL1(RenderProcessHostMsg_SuddenTerminationChanged,
60 bool /* enabled */) 71 bool /* enabled */)
61 72
62 #if defined(OS_MACOSX) 73 #if defined(OS_MACOSX)
63 // Request that the browser load a font into shared memory for us. 74 // Request that the browser load a font into shared memory for us.
64 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont, 75 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont,
65 FontDescriptor /* font to load */, 76 FontDescriptor /* font to load */,
66 uint32_t /* buffer size */, 77 uint32_t /* buffer size */,
67 base::SharedMemoryHandle /* font data */, 78 base::SharedMemoryHandle /* font data */,
68 uint32_t /* font id */) 79 uint32_t /* font id */)
69 #elif defined(OS_WIN) 80 #elif defined(OS_WIN)
70 // Request that the given font characters be loaded by the browser so it's 81 // Request that the given font characters be loaded by the browser so it's
71 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 82 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
72 // for details. 83 // for details.
73 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters, 84 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters,
74 LOGFONT /* font_data */, 85 LOGFONT /* font_data */,
75 base::string16 /* characters */) 86 base::string16 /* characters */)
76 87
77 // Asks the browser for the user's monitor profile. 88 // Asks the browser for the user's monitor profile.
78 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile, 89 IPC_SYNC_MESSAGE_CONTROL0_1(RenderProcessHostMsg_GetMonitorColorProfile,
79 std::vector<char> /* profile */) 90 std::vector<char> /* profile */)
80 #endif 91 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698