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

Unified Diff: content/common/child_process_messages.h

Issue 7866019: New implementation of font precache on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix Linux/Mac build break Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/common/child_process_messages.h
diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
index a503423d96f61cb245471b6d6842d8e175cdf606..1135650ba66440e6b71548c03b12a79a038e0dcf 100644
--- a/content/common/child_process_messages.h
+++ b/content/common/child_process_messages.h
@@ -59,3 +59,16 @@ IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected,
// Reply to ChildProcessMsg_GetTraceBufferPercentFull.
IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply,
float /*trace buffer percent full*/)
+
+#if defined(OS_WIN)
+// Request that the given font be loaded by the host so it's cached by the
+// OS. Please see ChildProcessHost::PreCacheFont for details.
+IPC_SYNC_MESSAGE_CONTROL1_0(ChromeUtilityHostMsg_PreCacheFont,
jam 2011/09/19 16:31:17 messages in this file start with ChildProcessMsg o
arthurhsu 2011/09/19 18:22:51 Done.
+ LOGFONT /* font data */)
+IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont,
+ LOGFONT /* font data */)
+
+// Release the cached font
+IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ReleaseCachedFonts)
+IPC_MESSAGE_CONTROL0(ViewHostMsg_ReleaseCachedFonts)
+#endif // defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698