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

Side by Side Diff: content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming histograms Created 5 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 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
Alexei Svitkine (slow) 2015/11/06 22:11:45 Nit: Add an empty line above.
Ilya Kulshin 2015/11/11 01:22:11 Done.
28
29 #endif // CONTENT_CHILD_DWRITE_FONT_PROXY_DWRITE_FONT_PROXY_INIT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698