blob: e3df72ca89762f6ced867e8d4726e8479fd6eed1 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/common/content_export.h"
#include "ipc/ipc_sender.h"
#if defined(OS_WIN)
#include <windows.h>
namespace content {
class CONTENT_EXPORT ChildThread : public IPC::Sender {
// Returns the one child thread for this process. Note that this can only be
// accessed when running on the child thread itself.
static ChildThread* Get();
~ChildThread() override {}
#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;
} // namespace content