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

Side by Side Diff: chrome/utility/font_cache_handler_win.cc

Issue 724633002: DirectWrite Font Cache browser side hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review... Created 6 years, 1 month 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
OLDNEW
(Empty)
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.
4
5 #include "chrome/utility/font_cache_handler_win.h"
6
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"
10
11 FontCacheHandler::FontCacheHandler() {}
ananta 2014/11/13 23:24:47 Nuke and move to header.
Shrikant Kelkar 2014/11/13 23:37:58 Done.
12 FontCacheHandler::~FontCacheHandler() {}
13
14 bool FontCacheHandler::OnMessageReceived(const IPC::Message& message) {
15 bool handled = true;
16 IPC_BEGIN_MESSAGE_MAP(FontCacheHandler, message)
17 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_BuildDirectWriteFontCache,
18 OnBuildFontCache)
19 IPC_MESSAGE_UNHANDLED(handled = false)
20 IPC_END_MESSAGE_MAP()
21 return handled;
22 }
23
24 void FontCacheHandler::OnBuildFontCache(const base::FilePath& full_path) {
25 content::BuildFontCache(full_path);
26 content::UtilityThread::Get()->ReleaseProcessIfNeeded();
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698