Home
last modified time | relevance | path

Searched refs:local_id (Results 1 – 25 of 82) sorted by relevance

1234

/external/chromium_org/chrome/browser/chromeos/drive/
Dsync_client.cc59 const std::string& local_id = it->GetID(); in CollectBacklog() local
62 to_update->push_back(local_id); in CollectBacklog()
71 to_update->push_back(local_id); in CollectBacklog()
78 to_fetch->push_back(local_id); in CollectBacklog()
81 to_upload->push_back(local_id); in CollectBacklog()
94 const std::string& local_id = it->GetID(); in CheckExistingPinnedFiles() local
99 FileError error = metadata->GetResourceEntryById(local_id, &entry); in CheckExistingPinnedFiles()
101 LOG(WARNING) << "Entry not found: " << local_id; in CheckExistingPinnedFiles()
112 error = cache->Remove(local_id); in CheckExistingPinnedFiles()
114 LOG(WARNING) << "Failed to remove cache entry: " << local_id; in CheckExistingPinnedFiles()
[all …]
Dresource_metadata_unittest.cc99 std::string local_id; in SetUpEntries() local
101 util::CreateMyDriveRootEntry(kTestRootResourceId), &local_id)); in SetUpEntries()
102 const std::string root_local_id = local_id; in SetUpEntries()
105 CreateDirectoryEntry("dir1", root_local_id), &local_id)); in SetUpEntries()
106 const std::string local_id_dir1 = local_id; in SetUpEntries()
109 CreateDirectoryEntry("dir2", root_local_id), &local_id)); in SetUpEntries()
110 const std::string local_id_dir2 = local_id; in SetUpEntries()
113 CreateDirectoryEntry("dir3", local_id_dir1), &local_id)); in SetUpEntries()
114 const std::string local_id_dir3 = local_id; in SetUpEntries()
117 CreateFileEntry("file4", local_id_dir1), &local_id)); in SetUpEntries()
[all …]
Dsync_client.h59 void AddFetchTask(const std::string& local_id);
62 void RemoveFetchTask(const std::string& local_id);
65 void AddUploadTask(const ClientContext& context, const std::string& local_id);
68 void AddUpdateTask(const std::string& local_id);
113 void AddFetchTaskInternal(const std::string& local_id,
119 const std::string& local_id,
124 void AddUpdateTaskInternal(const std::string& local_id,
144 bool OnTaskComplete(SyncType type, const std::string& local_id);
148 void OnFetchFileComplete(const std::string& local_id,
155 void OnUploadFileComplete(const std::string& local_id, FileError error);
[all …]
Dchange_list_processor.cc185 std::string local_id; in ApplyEntryMap() local
186 error = resource_metadata_->AddEntry(root, &local_id); in ApplyEntryMap()
287 std::string local_id; in ApplyEntryMap() local
289 deleted_resource_ids[i], &local_id); in ApplyEntryMap()
291 error = resource_metadata_->RemoveEntry(local_id); in ApplyEntryMap()
315 std::string local_id; in ApplyEntry() local
316 error = resource_metadata_->GetIdByResourceId(entry.resource_id(), &local_id); in ApplyEntry()
320 error = resource_metadata_->GetResourceEntryById(local_id, &existing_entry); in ApplyEntry()
327 new_entry.set_local_id(local_id); in ApplyEntry()
331 std::string local_id; in ApplyEntry() local
[all …]
Dfile_system.cc53 std::string local_id; in GetLocallyStoredResourceEntry() local
54 FileError error = resource_metadata->GetIdByPath(file_path, &local_id); in GetLocallyStoredResourceEntry()
58 error = resource_metadata->GetResourceEntryById(local_id, entry); in GetLocallyStoredResourceEntry()
70 if (!cache->GetCacheEntry(local_id, &cache_entry) || !cache_entry.is_dirty()) in GetLocallyStoredResourceEntry()
75 error = cache->GetFile(local_id, &local_cache_path); in GetLocallyStoredResourceEntry()
103 std::string* local_id) { in PinInternal() argument
104 FileError error = resource_metadata->GetIdByPath(file_path, local_id); in PinInternal()
109 error = resource_metadata->GetResourceEntryById(*local_id, &entry); in PinInternal()
117 return cache->Pin(*local_id); in PinInternal()
124 std::string* local_id) { in UnpinInternal() argument
[all …]
Dsearch_metadata_unittest.cc70 std::string local_id; in AddEntriesToMetadata() local
75 util::kDriveGrandRootLocalId), &local_id)); in AddEntriesToMetadata()
76 const std::string root_local_id = local_id; in AddEntriesToMetadata()
80 "Directory 1", "dir1", 1, root_local_id), &local_id)); in AddEntriesToMetadata()
81 const std::string dir1_local_id = local_id; in AddEntriesToMetadata()
85 "SubDirectory File 1.txt", "file1a", 2, dir1_local_id), &local_id)); in AddEntriesToMetadata()
87 local_id, temp_file_md5, temp_file, FileCache::FILE_OPERATION_COPY)); in AddEntriesToMetadata()
93 EXPECT_EQ(FILE_ERROR_OK, resource_metadata_->AddEntry(entry, &local_id)); in AddEntriesToMetadata()
97 "Directory 2 excludeDir-test", "dir2", 4, root_local_id), &local_id)); in AddEntriesToMetadata()
102 root_local_id), &local_id)); in AddEntriesToMetadata()
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/sync/
Dremove_performer.cc24 const std::string& local_id) { in UpdateLocalStateAfterUnparent() argument
26 FileError error = metadata->GetResourceEntryById(local_id, &entry); in UpdateLocalStateAfterUnparent()
36 const std::string& local_id, in RemoveEntryOnUIThread() argument
42 base::Unretained(metadata), local_id), in RemoveEntryOnUIThread()
68 void RemovePerformer::Remove(const std::string& local_id, in Remove() argument
79 local_id, in Remove()
107 UnparentResource(callback, entry->resource_id(), entry->local_id()); in RemoveAfterGetResourceEntry()
110 TrashResource(callback, entry->resource_id(), entry->local_id()); in RemoveAfterGetResourceEntry()
116 const std::string& local_id) { in TrashResource() argument
124 weak_ptr_factory_.GetWeakPtr(), callback, local_id)); in TrashResource()
[all …]
Dentry_update_performer.cc23 const std::string& local_id, in PrepareUpdate() argument
26 FileError error = metadata->GetResourceEntryById(local_id, entry); in PrepareUpdate()
51 const std::string& local_id) { in FinishUpdate() argument
53 FileError error = metadata->GetResourceEntryById(local_id, &entry); in FinishUpdate()
98 void EntryUpdatePerformer::UpdateEntry(const std::string& local_id, in UpdateEntry() argument
111 metadata_, local_id, entry_ptr, parent_entry_ptr), in UpdateEntry()
133 remove_performer_->Remove(entry->local_id(), callback); in UpdateEntryAfterPrepare()
155 weak_ptr_factory_.GetWeakPtr(), callback, entry->local_id())); in UpdateEntryAfterPrepare()
160 const std::string& local_id, in UpdateEntryAfterUpdateResource() argument
167 entry_revert_performer_->RevertEntry(local_id, callback); in UpdateEntryAfterUpdateResource()
[all …]
Dentry_revert_performer_unittest.cc56 src_entry.local_id(), in TEST_F()
64 GetLocalResourceEntryById(src_entry.local_id(), &result_entry)); in TEST_F()
81 entry.set_parent_local_id(my_drive.local_id()); in TEST_F()
84 std::string local_id; in TEST_F() local
89 base::Unretained(metadata()), entry, &local_id), in TEST_F()
97 local_id, in TEST_F()
103 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntryById(local_id, &entry)); in TEST_F()
128 entry.local_id(), in TEST_F()
135 GetLocalResourceEntryById(entry.local_id(), &entry)); in TEST_F()
Dentry_revert_performer.cc21 const std::string& local_id, in FinishRevert() argument
42 const base::FilePath original_path = metadata->GetFilePath(local_id); in FinishRevert()
45 error = metadata->RemoveEntry(local_id); in FinishRevert()
56 entry.set_local_id(local_id); in FinishRevert()
87 void EntryRevertPerformer::RevertEntry(const std::string& local_id, in RevertEntry() argument
98 base::Unretained(metadata_), local_id, entry_ptr), in RevertEntry()
120 weak_ptr_factory_.GetWeakPtr(), callback, entry->local_id())); in RevertEntryAfterPrepare()
125 const std::string& local_id, in RevertEntryAfterGetResourceEntry() argument
135 base::Bind(&FinishRevert, metadata_, local_id, status, in RevertEntryAfterGetResourceEntry()
Dremove_performer.h51 void Remove(const std::string& local_id,
63 const std::string& local_id);
68 const std::string& local_id,
74 const std::string& local_id);
79 const std::string& local_id,
86 const std::string& local_id,
/external/chromium_org/mojo/system/
Dchannel.cc71 MessageInTransit::EndpointId local_id; in AttachMessagePipeEndpoint() local
80 local_id = next_local_id_; in AttachMessagePipeEndpoint()
86 local_id_to_endpoint_info_map_[local_id] = EndpointInfo(message_pipe, port); in AttachMessagePipeEndpoint()
89 message_pipe->Attach(port, scoped_refptr<Channel>(this), local_id); in AttachMessagePipeEndpoint()
90 return local_id; in AttachMessagePipeEndpoint()
93 void Channel::RunMessagePipeEndpoint(MessageInTransit::EndpointId local_id, in RunMessagePipeEndpoint() argument
100 local_id_to_endpoint_info_map_.find(local_id); in RunMessagePipeEndpoint()
120 void Channel::DetachMessagePipeEndpoint(MessageInTransit::EndpointId local_id) { in DetachMessagePipeEndpoint() argument
121 DCHECK_NE(local_id, MessageInTransit::kInvalidEndpointId); in DetachMessagePipeEndpoint()
124 local_id_to_endpoint_info_map_.erase(local_id); in DetachMessagePipeEndpoint()
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dupdate_operation.cc27 std::string local_id; member
41 FileError error = metadata->GetResourceEntryById(local_state->local_id, in GetFileLocalState()
49 local_state->drive_file_path = metadata->GetFilePath(local_state->local_id); in GetFileLocalState()
53 error = cache->GetFile(local_state->local_id, &local_state->cache_file_path); in GetFileLocalState()
62 cache->ClearDirty(local_state->local_id, md5); in GetFileLocalState()
74 const std::string& local_id, in UpdateFileLocalState() argument
87 entry.set_local_id(local_id); in UpdateFileLocalState()
94 *drive_file_path = metadata->GetFilePath(local_id); in UpdateFileLocalState()
99 return cache->ClearDirty(local_id, entry.file_specific_info().md5()); in UpdateFileLocalState()
124 const std::string& local_id, in UpdateFileByLocalId() argument
[all …]
Dremove_operation.cc27 std::string* local_id, in UpdateLocalState() argument
29 FileError error = metadata->GetIdByPath(path, local_id); in UpdateLocalState()
34 error = metadata->GetResourceEntryById(*local_id, &entry); in UpdateLocalState()
48 *changed_directory_path = metadata->GetFilePath(*local_id).DirName(); in UpdateLocalState()
56 return cache->Remove(*local_id); in UpdateLocalState()
84 std::string* local_id = new std::string; in Remove() local
94 local_id, in Remove()
99 base::Owned(local_id), in Remove()
105 const std::string* local_id, in RemoveAfterUpdateLocalState() argument
113 observer_->OnEntryUpdatedByOperation(*local_id); in RemoveAfterUpdateLocalState()
Dupdate_operation_unittest.cc42 const std::string local_id = GetLocalId(kFilePath); in TEST_F() local
43 EXPECT_FALSE(local_id.empty()); in TEST_F()
52 local_id), in TEST_F()
64 local_id, kMd5, kTestFile, in TEST_F()
77 local_id), in TEST_F()
87 local_id, in TEST_F()
117 local_id, in TEST_F()
145 const std::string local_id = GetLocalId(kFilePath); in TEST_F() local
146 EXPECT_FALSE(local_id.empty()); in TEST_F()
155 local_id, kMd5, kTestFile, in TEST_F()
[all …]
Dtouch_operation.cc28 std::string* local_id) { in UpdateLocalState() argument
33 *local_id = entry.local_id(); in UpdateLocalState()
65 std::string* local_id = new std::string; in TouchFile() local
74 local_id), in TouchFile()
79 base::Owned(local_id))); in TouchFile()
85 const std::string* local_id, in TouchFileAfterUpdateLocalState() argument
92 observer_->OnEntryUpdatedByOperation(*local_id); in TouchFileAfterUpdateLocalState()
Dopen_file_operation.cc129 entry->local_id()), in OpenFileAfterFileDownloaded()
133 entry->local_id(), in OpenFileAfterFileDownloaded()
139 const std::string& local_id, in OpenFileAfterMarkDirty() argument
150 ++open_files_[local_id]; in OpenFileAfterMarkDirty()
153 weak_ptr_factory_.GetWeakPtr(), local_id)); in OpenFileAfterMarkDirty()
156 void OpenFileOperation::CloseFile(const std::string& local_id) { in CloseFile() argument
158 DCHECK_GT(open_files_[local_id], 0); in CloseFile()
160 if (--open_files_[local_id] == 0) { in CloseFile()
162 open_files_.erase(local_id); in CloseFile()
163 observer_->OnCacheFileUploadNeededByOperation(local_id); in CloseFile()
Dmove_operation.cc25 std::string* local_id) { in UpdateLocalState() argument
30 *local_id = entry.local_id(); in UpdateLocalState()
60 entry.set_parent_local_id(parent_entry.local_id()); in UpdateLocalState()
95 std::string* local_id = new std::string; in Move() local
105 local_id), in Move()
110 base::Owned(local_id))); in Move()
116 const std::string* local_id, in MoveAfterUpdateLocalState() argument
126 observer_->OnEntryUpdatedByOperation(*local_id); in MoveAfterUpdateLocalState()
Ddownload_operation.cc41 const std::string& local_id, in CheckPreConditionForEnsureFileDownloaded() argument
48 FileError error = metadata->GetResourceEntryById(local_id, entry); in CheckPreConditionForEnsureFileDownloaded()
80 if (!cache->GetCacheEntry(local_id, &cache_entry)) in CheckPreConditionForEnsureFileDownloaded()
90 error = cache->GetFile(local_id, cache_file_path); in CheckPreConditionForEnsureFileDownloaded()
113 const std::string& local_id, in CheckPreConditionForEnsureFileDownloadedByLocalId() argument
118 *drive_file_path = metadata->GetFilePath(local_id); in CheckPreConditionForEnsureFileDownloadedByLocalId()
120 metadata, cache, temporary_file_directory, local_id, entry, in CheckPreConditionForEnsureFileDownloadedByLocalId()
133 std::string local_id; in CheckPreConditionForEnsureFileDownloadedByPath() local
134 FileError error = metadata->GetIdByPath(file_path, &local_id); in CheckPreConditionForEnsureFileDownloadedByPath()
138 metadata, cache, temporary_file_directory, local_id, entry, in CheckPreConditionForEnsureFileDownloadedByPath()
[all …]
Doperation_test_base.cc35 const std::string& local_id) { in OnCacheFileUploadNeededByOperation() argument
36 upload_needed_local_ids_.insert(local_id); in OnCacheFileUploadNeededByOperation()
40 const std::string& local_id) { in OnEntryUpdatedByOperation() argument
41 updated_local_ids_.insert(local_id); in OnEntryUpdatedByOperation()
143 const std::string& local_id, in GetLocalResourceEntryById() argument
150 base::Unretained(metadata()), local_id, entry), in GetLocalResourceEntryById()
157 std::string local_id; in GetLocalId() local
163 base::Unretained(metadata()), path, &local_id), in GetLocalId()
167 return local_id; in GetLocalId()
Dget_file_for_saving_operation.cc101 const std::string& local_id = entry->local_id(); in GetFileForSavingAfterDownload() local
107 local_id), in GetFileForSavingAfterDownload()
128 const std::string& local_id = entry->local_id(); in GetFileForSavingAfterMarkDirty() local
138 local_id)); in GetFileForSavingAfterMarkDirty()
158 void GetFileForSavingOperation::OnWriteEvent(const std::string& local_id) { in OnWriteEvent() argument
159 observer_->OnCacheFileUploadNeededByOperation(local_id); in OnWriteEvent()
Dmove_operation_unittest.cc56 EXPECT_EQ(src_entry.local_id(), dest_entry.local_id()); in TEST_F()
64 EXPECT_TRUE(observer()->updated_local_ids().count(src_entry.local_id())); in TEST_F()
86 EXPECT_EQ(src_entry.local_id(), dest_entry.local_id()); in TEST_F()
95 EXPECT_TRUE(observer()->updated_local_ids().count(src_entry.local_id())); in TEST_F()
136 EXPECT_EQ(copied_entry.local_id(), dest_entry.local_id()); in TEST_F()
146 EXPECT_TRUE(observer()->updated_local_ids().count(copied_entry.local_id())); in TEST_F()
223 EXPECT_EQ(src_entry.local_id(), dest_entry.local_id()); in TEST_F()
Dtruncate_operation.cc32 const std::string& local_id, in TruncateOnBlockingPool() argument
38 FileError error = cache->MarkDirty(local_id); in TruncateOnBlockingPool()
134 metadata_, cache_, entry->local_id(), local_file_path, length), in TruncateAfterEnsureFileDownloadedByPath()
137 weak_ptr_factory_.GetWeakPtr(), entry->local_id(), callback)); in TruncateAfterEnsureFileDownloadedByPath()
141 const std::string& local_id, in TruncateAfterTruncateOnBlockingPool() argument
147 observer_->OnCacheFileUploadNeededByOperation(local_id); in TruncateAfterTruncateOnBlockingPool()
Dcopy_operation.cc81 std::string local_id; in UpdateLocalStateForServerSideCopy() local
82 error = metadata->AddEntry(entry, &local_id); in UpdateLocalStateForServerSideCopy()
86 error = metadata->GetIdByResourceId(entry.resource_id(), &local_id); in UpdateLocalStateForServerSideCopy()
89 *file_path = metadata->GetFilePath(local_id); in UpdateLocalStateForServerSideCopy()
101 std::string* local_id) { in UpdateLocalStateForScheduleTransfer() argument
102 FileError error = metadata->GetIdByPath(remote_dest_path, local_id); in UpdateLocalStateForScheduleTransfer()
107 error = metadata->GetResourceEntryById(*local_id, &entry); in UpdateLocalStateForScheduleTransfer()
112 *local_id, entry.file_specific_info().md5(), local_src_path, in UpdateLocalStateForScheduleTransfer()
117 error = cache->MarkDirty(*local_id); in UpdateLocalStateForScheduleTransfer()
437 std::string* local_id = new std::string; in ScheduleTransferRegularFileAfterCreate() local
[all …]
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/
Did_mapping_helper.cc75 std::string local_id = GetPublicIdFromGUID(*value, in CreateMappingForUnmappedDevices() local
79 if (local_id.empty()) { in CreateMappingForUnmappedDevices()
80 local_id = GetRandomId(*value, device_info->size()); in CreateMappingForUnmappedDevices()
81 value->SetString(local_id, device->guid()); in CreateMappingForUnmappedDevices()
83 device->set_public_id(local_id); in CreateMappingForUnmappedDevices()

1234