1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

content / browser / font_list_async.cc [blame]

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/public/browser/font_list_async.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/values.h"
#include "content/common/font_list.h"

namespace content {

void GetFontListAsync(base::OnceCallback<void(base::Value::List)> callback) {
  GetFontListTaskRunner()->PostTaskAndReplyWithResult(
      FROM_HERE, base::BindOnce(&GetFontList_SlowBlocking),
      std::move(callback));
}

}  // namespace content