#include "content/browser/file_system_access/file_system_access_change_source.h"
#include "base/functional/callback.h"
namespace content {
namespace {
storage::FileSystemURL ToFileSystemURL(storage::FileSystemContext& context,
const storage::FileSystemURL& root_url,
const base::FilePath& relative_path) { … }
}
FileSystemAccessChangeSource::FileSystemAccessChangeSource(
FileSystemAccessWatchScope scope,
scoped_refptr<storage::FileSystemContext> file_system_context)
: … { … }
FileSystemAccessChangeSource::~FileSystemAccessChangeSource() { … }
void FileSystemAccessChangeSource::AddObserver(RawChangeObserver* observer) { … }
void FileSystemAccessChangeSource::RemoveObserver(RawChangeObserver* observer) { … }
void FileSystemAccessChangeSource::EnsureInitialized(
base::OnceCallback<void(blink::mojom::FileSystemAccessErrorPtr)>
on_source_initialized) { … }
void FileSystemAccessChangeSource::DidInitialize(
blink::mojom::FileSystemAccessErrorPtr result) { … }
base::WeakPtr<FileSystemAccessChangeSource>
FileSystemAccessChangeSource::AsWeakPtr() { … }
void FileSystemAccessChangeSource::NotifyOfChange(
const storage::FileSystemURL& changed_url,
bool error,
const ChangeInfo& change_info) { … }
void FileSystemAccessChangeSource::NotifyOfChange(
const base::FilePath& relative_path,
bool error,
const ChangeInfo& change_info) { … }
}