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

Unified Diff: content/public/utility/utility_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, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/utility/utility_thread.h
diff --git a/content/public/utility/utility_thread.h b/content/public/utility/utility_thread.h
index 6e7cbd108d82d11652a62f66b607849d24116700..42bf10cf5eade593bd002ab86de55be1bc90ae69 100644
--- a/content/public/utility/utility_thread.h
+++ b/content/public/utility/utility_thread.h
@@ -6,16 +6,11 @@
#define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
#include "base/basictypes.h"
-#include "content/common/content_export.h"
-#include "ipc/ipc_sender.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
+#include "content/public/child/child_thread.h"
namespace content {
-class CONTENT_EXPORT UtilityThread : public IPC::Sender {
+class CONTENT_EXPORT UtilityThread : virtual public ChildThread {
public:
// Returns the one utility thread for this process. Note that this can only
// be accessed when running on the utility thread itself.
@@ -26,15 +21,6 @@ class CONTENT_EXPORT UtilityThread : public IPC::Sender {
// Releases the process if we are not (or no longer) in batch mode.
virtual void ReleaseProcessIfNeeded() = 0;
-
-#if defined(OS_WIN)
- // Request that the given font be loaded by the browser so it's cached by the
- // OS. Please see ChildProcessHost::PreCacheFont for details.
- virtual void PreCacheFont(const LOGFONT& log_font) = 0;
-
- // Release cached font.
- virtual void ReleaseCachedFonts() = 0;
-#endif
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698