#include "chrome/browser/sync_file_system/local/local_file_sync_status.h"
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/observer_list.h"
#include "content/public/browser/browser_thread.h"
#include "storage/common/file_system/file_system_util.h"
FileSystemURL;
FileSystemURLSet;
namespace sync_file_system {
namespace {
OriginAndType;
OriginAndType GetOriginAndType(const storage::FileSystemURL& url) { … }
base::FilePath NormalizePath(const base::FilePath& path) { … }
struct SetKeyHelper { … };
struct MapKeyHelper { … };
template <typename Container, typename GetKeyHelper>
bool ContainsChildOrParent(const Container& paths,
const base::FilePath& path,
const GetKeyHelper& get_key_helper) { … }
}
LocalFileSyncStatus::LocalFileSyncStatus() { … }
LocalFileSyncStatus::~LocalFileSyncStatus() { … }
void LocalFileSyncStatus::StartWriting(const FileSystemURL& url) { … }
void LocalFileSyncStatus::EndWriting(const FileSystemURL& url) { … }
void LocalFileSyncStatus::StartSyncing(const FileSystemURL& url) { … }
void LocalFileSyncStatus::EndSyncing(const FileSystemURL& url) { … }
bool LocalFileSyncStatus::IsWriting(const FileSystemURL& url) const { … }
bool LocalFileSyncStatus::IsWritable(const FileSystemURL& url) const { … }
bool LocalFileSyncStatus::IsSyncable(const FileSystemURL& url) const { … }
void LocalFileSyncStatus::AddObserver(Observer* observer) { … }
void LocalFileSyncStatus::RemoveObserver(Observer* observer) { … }
bool LocalFileSyncStatus::IsChildOrParentWriting(
const FileSystemURL& url) const { … }
bool LocalFileSyncStatus::IsChildOrParentSyncing(
const FileSystemURL& url) const { … }
}