1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/utility/font_cache_handler_win.h"
7 #include "chrome/common/chrome_utility_messages.h"
8 #include "content/public/common/dwrite_font_platform_win.h"
9 #include "content/public/utility/utility_thread.h"
11 bool FontCacheHandler::OnMessageReceived(const IPC::Message
& message
) {
13 IPC_BEGIN_MESSAGE_MAP(FontCacheHandler
, message
)
14 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_BuildDirectWriteFontCache
,
16 IPC_MESSAGE_UNHANDLED(handled
= false)
21 void FontCacheHandler::OnBuildFontCache(const base::FilePath
& full_path
) {
22 content::BuildFontCache(full_path
);
23 content::UtilityThread::Get()->ReleaseProcessIfNeeded();