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

Unified Diff: content/public/renderer/render_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/renderer/render_thread.h
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h
index 002f45d04603caf54824bc2ad9c817dc791a6e18..407128b33313dcb4be77e7a2815260d9c5721bf9 100644
--- a/content/public/renderer/render_thread.h
+++ b/content/public/renderer/render_thread.h
@@ -10,12 +10,8 @@
#include "base/memory/shared_memory.h"
#include "base/metrics/user_metrics_action.h"
#include "content/common/content_export.h"
+#include "content/public/child/child_thread.h"
#include "ipc/ipc_channel_proxy.h"
-#include "ipc/ipc_sender.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
class GURL;
@@ -45,7 +41,7 @@ class RenderProcessObserver;
class ResourceDispatcherDelegate;
class ServiceRegistry;
-class CONTENT_EXPORT RenderThread : public IPC::Sender {
+class CONTENT_EXPORT RenderThread : virtual public ChildThread {
public:
// Returns the one render thread for this process. Note that this can only
// be accessed when running on the render thread itself.
@@ -135,15 +131,6 @@ class CONTENT_EXPORT RenderThread : public IPC::Sender {
// Gets the shutdown event for the process.
virtual base::WaitableEvent* GetShutdownEvent() = 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
-
// Returns the ServiceRegistry for this thread.
virtual ServiceRegistry* GetServiceRegistry() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698