// 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. #ifndef EXTENSIONS_BROWSER_FILE_READER_H_ #define EXTENSIONS_BROWSER_FILE_READER_H_ #include <optional> #include <string> #include <vector> #include "base/functional/callback.h" #include "base/memory/ref_counted.h" #include "base/task/single_thread_task_runner.h" #include "extensions/common/extension_resource.h" // This file defines an interface for reading files asynchronously on a // background sequence. // Consider abstracting out a FilePathProvider (ExtensionResource) and moving // back to chrome/browser/net if other subsystems want to use it. class FileReader : public base::RefCountedThreadSafe<FileReader> { … }; #endif // EXTENSIONS_BROWSER_FILE_READER_H_