1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // TODO(crbug.com/1226242): Implement support for downloads under Fuchsia.
7 #include "chrome/browser/icon_loader.h"
11 #include "base/functional/bind.h"
12 #include "base/functional/callback.h"
13 #include "base/location.h"
14 #include "base/memory/scoped_refptr.h"
15 #include "base/notreached.h"
16 #include "base/task/single_thread_task_runner.h"
17 #include "base/task/thread_pool.h"
18 #include "ui/gfx/image/image.h"
21 IconLoader::IconGroup IconLoader::GroupForFilepath(
22 const base::FilePath& file_path) {
23 NOTIMPLEMENTED_LOG_ONCE();
24 return file_path.Extension();
28 scoped_refptr<base::TaskRunner> IconLoader::GetReadIconTaskRunner() {
29 NOTIMPLEMENTED_LOG_ONCE();
30 return base::ThreadPool::CreateTaskRunner(traits());
33 void IconLoader::ReadIcon() {
34 NOTIMPLEMENTED_LOG_ONCE();
36 // Report back that no icon was found.
37 target_task_runner_->PostTask(
38 FROM_HERE, base::BindOnce(std::move(callback_), gfx::Image(), group_));