#include "components/file_access/scoped_file_access_delegate.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "components/file_access/scoped_file_access.h"
namespace file_access {
ScopedFileAccessDelegate* ScopedFileAccessDelegate::Get() { … }
bool ScopedFileAccessDelegate::HasInstance() { … }
void ScopedFileAccessDelegate::DeleteInstance() { … }
void ScopedFileAccessDelegate::RequestDefaultFilesAccessIO(
const std::vector<base::FilePath>& files,
base::OnceCallback<void(ScopedFileAccess)> callback) { … }
void ScopedFileAccessDelegate::RequestFilesAccessForSystemIO(
const std::vector<base::FilePath>& files,
base::OnceCallback<void(ScopedFileAccess)> callback) { … }
ScopedFileAccessDelegate::RequestFilesAccessIOCallback
ScopedFileAccessDelegate::GetCallbackForSystem() { … }
ScopedFileAccessDelegate::ScopedFileAccessDelegate() { … }
ScopedFileAccessDelegate::~ScopedFileAccessDelegate() { … }
ScopedFileAccessDelegate*
ScopedFileAccessDelegate::scoped_file_access_delegate_ = …;
ScopedFileAccessDelegate::RequestFilesAccessCheckDefaultCallback*
ScopedFileAccessDelegate::request_files_access_for_system_io_callback_ = …;
ScopedFileAccessDelegate::ScopedRequestFilesAccessCallbackForTesting::
ScopedRequestFilesAccessCallbackForTesting(
RequestFilesAccessIOCallback callback,
bool restore_original_callback)
: … { … }
ScopedFileAccessDelegate::ScopedRequestFilesAccessCallbackForTesting::
~ScopedRequestFilesAccessCallbackForTesting() { … }
void ScopedFileAccessDelegate::ScopedRequestFilesAccessCallbackForTesting::
RunOriginalCallback(
const std::vector<base::FilePath>& path,
base::OnceCallback<void(file_access::ScopedFileAccess)> callback) { … }
void RequestFilesAccess(
const std::vector<base::FilePath>& files,
const GURL& destination_url,
base::OnceCallback<void(file_access::ScopedFileAccess)> callback) { … }
void RequestFilesAccessForSystem(
const std::vector<base::FilePath>& files,
base::OnceCallback<void(file_access::ScopedFileAccess)> callback) { … }
ScopedFileAccessDelegate::RequestFilesAccessIOCallback CreateFileAccessCallback(
const GURL& destination) { … }
}