Home | History | Annotate | Download | only in syncable

Lines Matching refs:Directory

271 // Directory
273 void Directory::init_kernel(const std::string& name) {
278 Directory::PersistedKernelInfo::PersistedKernelInfo()
288 Directory::PersistedKernelInfo::~PersistedKernelInfo() {}
290 void Directory::PersistedKernelInfo::reset_download_progress(
298 Directory::SaveChangesSnapshot::SaveChangesSnapshot()
302 Directory::SaveChangesSnapshot::~SaveChangesSnapshot() {}
304 Directory::Kernel::Kernel(const FilePath& db_path,
310 metahandles_index(new Directory::MetahandlesIndex),
311 ids_index(new Directory::IdsIndex),
312 parent_id_child_index(new Directory::ParentIdChildIndex),
313 client_tag_index(new Directory::ClientTagIndex),
318 channel(new Directory::Channel(syncable::DIRECTORY_DESTROYED)),
320 info_status(Directory::KERNEL_SHARE_INFO_VALID),
326 void Directory::Kernel::AddRef() {
330 void Directory::Kernel::Release() {
335 Directory::Kernel::~Kernel() {
349 Directory::Directory() : kernel_(NULL), store_(NULL) {
352 Directory::~Directory() {
356 DirOpenResult Directory::Open(const FilePath& file_path, const string& name) {
363 void Directory::InitializeIndices() {
379 DirectoryBackingStore* Directory::CreateBackingStore(
384 DirOpenResult Directory::OpenImpl(const FilePath& file_path,
405 void Directory::Close() {
418 EntryKernel* Directory::GetEntryById(const Id& id) {
423 EntryKernel* Directory::GetEntryById(const Id& id,
435 EntryKernel* Directory::GetEntryByClientTag(const string& tag) {
448 EntryKernel* Directory::GetEntryByServerTag(const string& tag) {
465 EntryKernel* Directory::GetEntryByHandle(int64 metahandle) {
470 EntryKernel* Directory::GetEntryByHandle(int64 metahandle,
483 void Directory::GetChildHandles(BaseTransaction* trans, const Id& parent_id,
484 Directory::ChildHandles* result) {
485 CHECK(this == trans->directory());
500 EntryKernel* Directory::GetRootEntry() {
519 void Directory::InsertEntry(EntryKernel* entry) {
524 void Directory::InsertEntry(EntryKernel* entry, ScopedKernelLock* lock) {
539 bool Directory::ReindexId(EntryKernel* const entry, const Id& new_id) {
554 void Directory::ReindexParentId(EntryKernel* const entry,
566 void Directory::ClearDirtyMetahandles() {
571 bool Directory::SafeToPurgeFromMemory(const EntryKernel* const entry) const {
587 void Directory::TakeSnapshotForSaveChanges(SaveChangesSnapshot* snapshot) {
625 bool Directory::SaveChanges() {
644 void Directory::VacuumAfterSaveChanges(const SaveChangesSnapshot& snapshot) {
677 void Directory::PurgeEntriesWithTypeIn(const std::set<ModelType>& types) {
733 void Directory::HandleSaveChangesFailure(const SaveChangesSnapshot& snapshot) {
756 void Directory::GetDownloadProgress(
764 void Directory::GetDownloadProgressAsString(
772 void Directory::SetDownloadProgress(
780 bool Directory::initial_sync_ended_for_type(ModelType type) const {
785 AutofillMigrationState Directory::get_autofill_migration_state() const {
791 Directory::get_autofill_migration_debug_info() const {
796 template <class T> void Directory::TestAndSet(
804 void Directory::set_autofill_migration_state_debug_info(
839 void Directory::set_autofill_migration_state(AutofillMigrationState state) {
854 void Directory::set_initial_sync_ended_for_type(ModelType type, bool x) {
859 void Directory::set_initial_sync_ended_for_type_unsafe(ModelType type,
867 void Directory::SetNotificationStateUnsafe(
875 string Directory::store_birthday() const {
880 void Directory::set_store_birthday(const string& store_birthday) {
888 std::string Directory::GetAndClearNotificationState() {
895 void Directory::SetNotificationState(const std::string& notification_state) {
900 string Directory::cache_guid() const {
905 void Directory::GetAllMetaHandles(BaseTransaction* trans,
917 void Directory::GetUnsyncedMetaHandles(BaseTransaction* trans,
925 int64 Directory::unsynced_entity_count() const {
930 void Directory::GetUnappliedUpdateMetaHandles(BaseTransaction* trans,
962 void Directory::CheckTreeInvariants(syncable::BaseTransaction* trans,
978 void Directory::CheckTreeInvariants(syncable::BaseTransaction* trans,
1001 void Directory::CheckTreeInvariants(syncable::BaseTransaction* trans,
1055 // For now, you can't combine a client tag and a directory.
1089 void Directory::SetChangeListener(DirectoryChangeListener* listener) {
1097 ScopedKernelLock::ScopedKernelLock(const Directory* dir)
1098 : scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
1121 BaseTransaction::BaseTransaction(Directory* directory, const char* name,
1123 : directory_(directory), dirkernel_(directory->kernel_), name_(name),
1128 BaseTransaction::BaseTransaction(Directory* directory)
1129 : directory_(directory),
1201 ReadTransaction::ReadTransaction(Directory* directory, const char* file,
1203 : BaseTransaction(directory, "Read", file, line, INVALID) {
1215 WriteTransaction::WriteTransaction(Directory* directory, WriterTag writer,
1217 : BaseTransaction(directory, "Write", file, line, writer),
1227 WriteTransaction::WriteTransaction(Directory *directory)
1228 : BaseTransaction(directory),
1246 directory()->CheckTreeInvariants(this, full_scan);
1248 directory()->CheckTreeInvariants(this, originals_);
1259 kernel_ = trans->directory()->GetEntryById(id);
1264 kernel_ = trans->directory()->GetEntryByClientTag(tag);
1269 kernel_ = trans->directory()->GetEntryByServerTag(tag);
1274 kernel_ = trans->directory()->GetEntryByHandle(metahandle);
1277 Directory* Entry::dir() const {
1278 return basetrans_->directory();
1378 trans->directory()->InsertEntry(kernel_);
1401 trans->directory()->InsertEntry(kernel_);
1595 void Directory::UnlinkEntryFromOrder(EntryKernel* entry,
1598 CHECK(!trans || this == trans->directory());
1660 syncable::Directory* dir = trans()->directory();
1686 int64 Directory::NextMetahandle() {
1694 Id Directory::NextId() {
1705 Id Directory::GetFirstChildId(BaseTransaction* trans,
1734 Id Directory::GetLastChildId(BaseTransaction* trans,
1765 Id Directory::ComputePrevIdFromServerPosition(
1875 Directory::ParentIdChildIndex::iterator Directory::LocateInParentChildIndex(
1886 Directory::ParentIdChildIndex::iterator
1887 Directory::GetParentChildIndexLowerBound(const ScopedKernelLock& lock,
1897 Directory::ParentIdChildIndex::iterator
1898 Directory::GetParentChildIndexUpperBound(const ScopedKernelLock& lock,