Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2011 The Chromium Authors |
[email protected] | d259a8e | 2011-05-18 22:31:09 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | ec810db | 2012-02-29 19:20:14 | [diff] [blame] | 5 | #include "content/public/browser/font_list_async.h" |
[email protected] | d259a8e | 2011-05-18 22:31:09 | [diff] [blame] | 6 | |
dcheng | 36b6aec9 | 2015-12-26 06:16:36 | [diff] [blame] | 7 | #include <utility> |
8 | |||||
Avi Drissman | adac2199 | 2023-01-11 23:46:39 | [diff] [blame] | 9 | #include "base/functional/bind.h" |
[email protected] | d259a8e | 2011-05-18 22:31:09 | [diff] [blame] | 10 | #include "base/values.h" |
[email protected] | d259a8e | 2011-05-18 22:31:09 | [diff] [blame] | 11 | #include "content/common/font_list.h" |
[email protected] | d259a8e | 2011-05-18 22:31:09 | [diff] [blame] | 12 | |
13 | namespace content { | ||||
14 | |||||
Matt Menke | e29b177 | 2022-06-30 14:39:58 | [diff] [blame] | 15 | void GetFontListAsync(base::OnceCallback<void(base::Value::List)> callback) { |
Sean Maher | a539a158 | 2022-11-28 18:13:41 | [diff] [blame] | 16 | GetFontListTaskRunner()->PostTaskAndReplyWithResult( |
17 | FROM_HERE, base::BindOnce(&GetFontList_SlowBlocking), | ||||
18 | std::move(callback)); | ||||
[email protected] | d259a8e | 2011-05-18 22:31:09 | [diff] [blame] | 19 | } |
20 | |||||
21 | } // namespace content |