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

Side by Side Diff: content/public/child/child_thread.h

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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_PUBLIC_CHILD_THREAD_H_
6 #define CONTENT_PUBLIC_CHILD_THREAD_H_
7
8 #include "content/common/content_export.h"
9 #include "ipc/ipc_sender.h"
10
11 #if defined(OS_WIN)
12 #include <windows.h>
13 #endif
14
15 namespace content {
16
17 class CONTENT_EXPORT ChildThread : public IPC::Sender {
18 public:
19 // Returns the one child thread for this process. Note that this can only be
20 // accessed when running on the child thread itself.
21 static ChildThread* Get();
22
23 ~ChildThread() override {}
24
25 #if defined(OS_WIN)
26 // Request that the given font be loaded by the browser so it's cached by the
27 // OS. Please see ChildProcessHost::PreCacheFont for details.
28 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
29
30 // Release cached font.
31 virtual void ReleaseCachedFonts() = 0;
32 #endif
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_PUBLIC_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698