summaryrefslogtreecommitdiffstats
path: root/content/utility/utility_thread_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/utility/utility_thread_impl.cc')
-rw-r--r--content/utility/utility_thread_impl.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/utility/utility_thread_impl.cc b/content/utility/utility_thread_impl.cc
index a743c27..f53fcd8 100644
--- a/content/utility/utility_thread_impl.cc
+++ b/content/utility/utility_thread_impl.cc
@@ -9,6 +9,7 @@
#include "base/file_path.h"
#include "base/memory/scoped_vector.h"
#include "content/common/child_process.h"
+#include "content/common/child_process_messages.h"
#include "content/common/indexed_db_key.h"
#include "content/common/utility_messages.h"
#include "content/public/utility/content_utility_client.h"
@@ -51,6 +52,19 @@ void UtilityThreadImpl::ReleaseProcessIfNeeded() {
ChildProcess::current()->ReleaseProcess();
}
+#if defined(OS_WIN)
+
+void UtilityThreadImpl::PreCacheFont(const LOGFONT& log_font) {
+ Send(new ChildProcessHostMsg_PreCacheFont(log_font));
+}
+
+void UtilityThreadImpl::ReleaseCachedFonts() {
+ Send(new ChildProcessHostMsg_ReleaseCachedFonts());
+}
+
+#endif // OS_WIN
+
+
bool UtilityThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
if (content::GetContentClient()->utility()->OnMessageReceived(msg))
return true;