Index: chrome/utility/font_cache_handler_win.h |
diff --git a/chrome/utility/font_cache_handler_win.h b/chrome/utility/font_cache_handler_win.h |
index 44c63f1af9625b517dddf3e29763f83f5114ca2b..e92ef4a530a502183466a2f596c2453ce96574b5 100644 |
--- a/chrome/utility/font_cache_handler_win.h |
+++ b/chrome/utility/font_cache_handler_win.h |
@@ -6,8 +6,15 @@ |
#define CHROME_UTILITY_FONT_CACHE_HANDLER_WIN_H_ |
#include "base/files/file_path.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/memory/scoped_ptr.h" |
#include "chrome/utility/utility_message_handler.h" |
+namespace base { |
+class TaskRunner; |
+class Thread; |
+} |
+ |
// Handles requests to build a static direct write font cache. Must be invoked |
// in a non-sandboxed utility process. We build static font cache in utility |
// process as it is time consuming as well as crash prone thing. We already |
@@ -24,6 +31,14 @@ class FontCacheHandler : public UtilityMessageHandler { |
private: |
void OnBuildFontCache(const base::FilePath& full_path); |
+ void StartBuildingFontCache(const base::FilePath& full_path); |
+ void Cleanup(); |
+ |
+ scoped_refptr<base::TaskRunner> utility_task_runner_; |
+ |
+ // Thread that caching process runs on, while FontCacheHandler handles |
+ // messages from the browser process. |
+ scoped_ptr<base::Thread> cache_thread_; |
DISALLOW_COPY_AND_ASSIGN(FontCacheHandler); |
}; |