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

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

Issue 1346473003: Move font IPCs to be RenderProcess messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/common/mac/attributed_string_coder.mm ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/memory/shared_memory.h"
10 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_message_utils.h" 12 #include "ipc/ipc_message_utils.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
15 #if defined(OS_MACOSX)
16 #include "content/common/mac/font_descriptor.h"
17 #endif
18
14 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 21
17 #define IPC_MESSAGE_START RenderProcessMsgStart 22 #define IPC_MESSAGE_START RenderProcessMsgStart
18 23
24 #if defined(OS_MACOSX)
25 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
26 IPC_STRUCT_TRAITS_MEMBER(font_name)
27 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
28 IPC_STRUCT_TRAITS_END()
29 #endif
30
19 //////////////////////////////////////////////////////////////////////////////// 31 ////////////////////////////////////////////////////////////////////////////////
20 // Messages sent from the browser to the render process. 32 // Messages sent from the browser to the render process.
21 33
22 //////////////////////////////////////////////////////////////////////////////// 34 ////////////////////////////////////////////////////////////////////////////////
23 // Messages sent from the render process to the browser. 35 // Messages sent from the render process to the browser.
24 36
25 // 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
26 // certificate from a CA (<keygen> tag), and returns the signed public 38 // certificate from a CA (<keygen> tag), and returns the signed public
27 // key and challenge string. 39 // key and challenge string.
28 IPC_SYNC_MESSAGE_CONTROL3_1(RenderProcessHostMsg_Keygen, 40 IPC_SYNC_MESSAGE_CONTROL3_1(RenderProcessHostMsg_Keygen,
29 uint32 /* key size index */, 41 uint32 /* key size index */,
30 std::string /* challenge string */, 42 std::string /* challenge string */,
31 GURL /* URL of requestor */, 43 GURL /* URL of requestor */,
32 std::string /* signed public key and challenge */) 44 std::string /* signed public key and challenge */)
45
46 #if defined(OS_MACOSX)
47 // Request that the browser load a font into shared memory for us.
48 IPC_SYNC_MESSAGE_CONTROL1_3(RenderProcessHostMsg_LoadFont,
49 FontDescriptor /* font to load */,
50 uint32 /* buffer size */,
51 base::SharedMemoryHandle /* font data */,
52 uint32 /* font id */)
53 #elif defined(OS_WIN)
54 // Request that the given font characters be loaded by the browser so it's
55 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
56 // for details.
57 IPC_SYNC_MESSAGE_CONTROL2_0(RenderProcessHostMsg_PreCacheFontCharacters,
58 LOGFONT /* font_data */,
59 base::string16 /* characters */)
60 #endif
OLDNEW
« no previous file with comments | « content/common/mac/attributed_string_coder.mm ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698