OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 #ifndef CONTENT_CHILD_DWRITE_FONT_PROXY_DWRITE_FONT_PROXY_INIT_WIN_H_ |
| 6 #define CONTENT_CHILD_DWRITE_FONT_PROXY_DWRITE_FONT_PROXY_INIT_WIN_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_sender.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 // Initializes the dwrite font proxy, using the specified callback to obtain |
| 15 // the sender to be used for sending IPC messages to the browser process. |
| 16 void CONTENT_EXPORT |
| 17 InitializeDWriteFontProxy(const base::Callback<IPC::Sender*(void)>& sender); |
| 18 |
| 19 // Uninitialize the dwrite font proxy. This is safe to call even if the proxy |
| 20 // has not been initialized. After this, calls to load fonts may fail. |
| 21 void CONTENT_EXPORT UninitializeDWriteFontProxy(); |
| 22 |
| 23 // Configures the dwrite font proxy to use the specified sender. This can be |
| 24 // useful in tests which use a fake render thread which is unable to process |
| 25 // font IPC messages. This should only be called when running as a test. |
| 26 void CONTENT_EXPORT SetDWriteFontProxySenderForTesting(IPC::Sender* sender); |
| 27 } // namespace content |
| 28 |
| 29 #endif // CONTENT_CHILD_DWRITE_FONT_PROXY_DWRITE_FONT_PROXY_INIT_WIN_H_ |
OLD | NEW |