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

Unified Diff: chrome/common/chrome_utility_messages.h

Issue 7866019: New implementation of font precache on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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: chrome/common/chrome_utility_messages.h
diff --git a/chrome/common/chrome_utility_messages.h b/chrome/common/chrome_utility_messages.h
index c99365341c17b36163d82ce86b14bc21f53efb64..63694466173227e66386206a27296897e59e00f7 100644
--- a/chrome/common/chrome_utility_messages.h
+++ b/chrome/common/chrome_utility_messages.h
@@ -146,8 +146,13 @@ IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed)
#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,
- LOGFONT /* font data */)
+IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFont,
+ LOGFONT /* font data */,
+ int /*pid*/)
nsylvain 2011/09/13 19:32:18 should you really trust the renderer with the pid?
arthurhsu 2011/09/13 20:58:32 This one is a service utility process host, which
+
+// Release the cached font
+IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ReleaseCachedFont,
+ int /*pid*/)
#endif // defined(OS_WIN)
// Reply when the utility process successfully parsed a JSON string.
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_process_observer.cc » ('j') | chrome/utility/chrome_content_utility_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698