blob: c7e4b14a5d42318ee728fbf3cfbfa784f473f9c6 [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2011 The Chromium Authors
[email protected]d259a8e2011-05-18 22:31:092// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]ec810db2012-02-29 19:20:145#include "content/public/browser/font_list_async.h"
[email protected]d259a8e2011-05-18 22:31:096
dcheng36b6aec92015-12-26 06:16:367#include <utility>
8
Avi Drissmanadac21992023-01-11 23:46:399#include "base/functional/bind.h"
[email protected]d259a8e2011-05-18 22:31:0910#include "base/values.h"
[email protected]d259a8e2011-05-18 22:31:0911#include "content/common/font_list.h"
[email protected]d259a8e2011-05-18 22:31:0912
13namespace content {
14
Matt Menkee29b1772022-06-30 14:39:5815void GetFontListAsync(base::OnceCallback<void(base::Value::List)> callback) {
Sean Mahera539a1582022-11-28 18:13:4116 GetFontListTaskRunner()->PostTaskAndReplyWithResult(
17 FROM_HERE, base::BindOnce(&GetFontList_SlowBlocking),
18 std::move(callback));
[email protected]d259a8e2011-05-18 22:31:0919}
20
21} // namespace content