OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_FONT_CACHE_DISPATCHER_WIN_H_ | 5 #ifndef CONTENT_COMMON_FONT_CACHE_DISPATCHER_WIN_H_ |
6 #define CONTENT_COMMON_FONT_CACHE_DISPATCHER_WIN_H_ | 6 #define CONTENT_COMMON_FONT_CACHE_DISPATCHER_WIN_H_ |
7 #pragma once | |
8 | 7 |
9 #include <windows.h> | 8 #include <windows.h> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
13 #include "ipc/ipc_channel_proxy.h" | 12 #include "ipc/ipc_channel_proxy.h" |
14 | 13 |
15 // Dispatches messages used for font caching on Windows. This is needed because | 14 // Dispatches messages used for font caching on Windows. This is needed because |
16 // Windows can't load fonts into its kernel cache in sandboxed processes. So the | 15 // Windows can't load fonts into its kernel cache in sandboxed processes. So the |
17 // sandboxed process asks the browser process to do this for it. | 16 // sandboxed process asks the browser process to do this for it. |
(...skipping 15 matching lines...) Expand all Loading... |
33 // Message handlers. | 32 // Message handlers. |
34 void OnPreCacheFont(const LOGFONT& font); | 33 void OnPreCacheFont(const LOGFONT& font); |
35 void OnReleaseCachedFonts(); | 34 void OnReleaseCachedFonts(); |
36 | 35 |
37 IPC::Channel* channel_; | 36 IPC::Channel* channel_; |
38 | 37 |
39 DISALLOW_COPY_AND_ASSIGN(FontCacheDispatcher); | 38 DISALLOW_COPY_AND_ASSIGN(FontCacheDispatcher); |
40 }; | 39 }; |
41 | 40 |
42 #endif // CONTENT_COMMON_FONT_CACHE_DISPATCHER_WIN_H_ | 41 #endif // CONTENT_COMMON_FONT_CACHE_DISPATCHER_WIN_H_ |
OLD | NEW |