/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
operation_observer.h | 26 const std::string& local_id) = 0; 29 virtual void OnEntryUpdatedByOperation(const std::string& local_id) {}
|
touch_operation.cc | 28 std::string* local_id) { 33 *local_id = entry.local_id(); 65 std::string* local_id = new std::string; local 74 local_id), 79 base::Owned(local_id))); 85 const std::string* local_id, 92 observer_->OnEntryUpdatedByOperation(*local_id);
|
remove_operation.cc | 27 std::string* local_id, 29 FileError error = metadata->GetIdByPath(path, local_id); 34 error = metadata->GetResourceEntryById(*local_id, &entry); 48 *changed_directory_path = metadata->GetFilePath(*local_id).DirName(); 56 return cache->Remove(*local_id); 84 std::string* local_id = new std::string; local 94 local_id, 99 base::Owned(local_id), 105 const std::string* local_id, 113 observer_->OnEntryUpdatedByOperation(*local_id); [all...] |
open_file_operation.cc | 129 entry->local_id()), 133 entry->local_id(), 139 const std::string& local_id, 150 ++open_files_[local_id]; 153 weak_ptr_factory_.GetWeakPtr(), local_id)); 156 void OpenFileOperation::CloseFile(const std::string& local_id) { 158 DCHECK_GT(open_files_[local_id], 0); 160 if (--open_files_[local_id] == 0) { 162 open_files_.erase(local_id); 163 observer_->OnCacheFileUploadNeededByOperation(local_id); [all...] |
update_operation.cc | 27 std::string local_id; member in struct:drive::file_system::UpdateOperation::LocalState 41 FileError error = metadata->GetResourceEntryById(local_state->local_id, 49 local_state->drive_file_path = metadata->GetFilePath(local_state->local_id); 53 error = cache->GetFile(local_state->local_id, &local_state->cache_file_path); 62 cache->ClearDirty(local_state->local_id, md5); 74 const std::string& local_id, 87 entry.set_local_id(local_id); 94 *drive_file_path = metadata->GetFilePath(local_id); 99 return cache->ClearDirty(local_id, entry.file_specific_info().md5()); 124 const std::string& local_id, [all...] |
move_operation.cc | 25 std::string* local_id) { 30 *local_id = entry.local_id(); 60 entry.set_parent_local_id(parent_entry.local_id()); 95 std::string* local_id = new std::string; local 105 local_id), 110 base::Owned(local_id))); 116 const std::string* local_id, 126 observer_->OnEntryUpdatedByOperation(*local_id);
|
update_operation_unittest.cc | 42 const std::string local_id = GetLocalId(kFilePath); local 43 EXPECT_FALSE(local_id.empty()); 52 local_id), 64 local_id, kMd5, kTestFile, 77 local_id), 87 local_id, 117 local_id, 145 const std::string local_id = GetLocalId(kFilePath); local 146 EXPECT_FALSE(local_id.empty()); 155 local_id, kMd5, kTestFile [all...] |
get_file_for_saving_operation.cc | 101 const std::string& local_id = entry->local_id(); local 107 local_id), 128 const std::string& local_id = entry->local_id(); local 138 local_id)); 158 void GetFileForSavingOperation::OnWriteEvent(const std::string& local_id) { 159 observer_->OnCacheFileUploadNeededByOperation(local_id);
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
sync_client.cc | 59 const std::string& local_id = it->GetID(); local 62 to_update->push_back(local_id); 71 to_update->push_back(local_id); 78 to_fetch->push_back(local_id); 81 to_upload->push_back(local_id); 94 const std::string& local_id = it->GetID(); local 99 FileError error = metadata->GetResourceEntryById(local_id, &entry); 101 LOG(WARNING) << "Entry not found: " << local_id; 112 error = cache->Remove(local_id); 114 LOG(WARNING) << "Failed to remove cache entry: " << local_id; 340 const std::string& local_id = (*to_upload)[i]; local 342 AddUploadTaskInternal(ClientContext(BACKGROUND), local_id, local 348 const std::string& local_id = (*to_fetch)[i]; local 354 const std::string& local_id = (*to_update)[i]; local 375 DVLOG(1) << "Running again: type = " << type << ", id = " << local_id; local 435 AddUploadTaskInternal(ClientContext(BACKGROUND), local_id, local 441 AddUploadTaskInternal(ClientContext(BACKGROUND), local_id, local [all...] |
sync_client.h | 59 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); 146 // Called when the file for |local_id| is fetched. 148 void OnFetchFileComplete(const std::string& local_id, [all...] |
resource_metadata_unittest.cc | 99 std::string local_id; local 101 util::CreateMyDriveRootEntry(kTestRootResourceId), &local_id)); 102 const std::string root_local_id = local_id; 105 CreateDirectoryEntry("dir1", root_local_id), &local_id)); 106 const std::string local_id_dir1 = local_id; 109 CreateDirectoryEntry("dir2", root_local_id), &local_id)); 110 const std::string local_id_dir2 = local_id; 113 CreateDirectoryEntry("dir3", local_id_dir1), &local_id)); 114 const std::string local_id_dir3 = local_id; 117 CreateFileEntry("file4", local_id_dir1), &local_id)); 435 std::string local_id; local 498 std::string local_id; local 575 std::string local_id; local [all...] |
change_list_processor.cc | 185 std::string local_id; local 186 error = resource_metadata_->AddEntry(root, &local_id); 287 std::string local_id; local 289 deleted_resource_ids[i], &local_id); 291 error = resource_metadata_->RemoveEntry(local_id); 315 std::string local_id; 316 error = resource_metadata_->GetIdByResourceId(entry.resource_id(), &local_id); 320 error = resource_metadata_->GetResourceEntryById(local_id, &existing_entry); 327 new_entry.set_local_id(local_id); 331 std::string local_id; local 387 std::string local_id; local 396 std::string local_id; local 419 std::string local_id; local [all...] |
remove_stale_cache_files_unittest.cc | 62 std::string local_id("pdf:1a2b3c"); 67 cache_->Store(local_id, md5, dummy_file, 72 EXPECT_TRUE(cache_->GetCacheEntry(local_id, &cache_entry)); 76 resource_metadata_->GetResourceEntryById(local_id, &entry)); 82 EXPECT_FALSE(cache_->GetCacheEntry(local_id, &cache_entry));
|
/external/chromium_org/chrome/browser/chromeos/drive/sync/ |
remove_performer.h | 51 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,
|
remove_performer.cc | 24 const std::string& local_id) { 26 FileError error = metadata->GetResourceEntryById(local_id, &entry); 36 const std::string& local_id, 42 base::Unretained(metadata), local_id), 68 void RemovePerformer::Remove(const std::string& local_id, 79 local_id, 107 UnparentResource(callback, entry->resource_id(), entry->local_id()); 110 TrashResource(callback, entry->resource_id(), entry->local_id()); 116 const std::string& local_id) { 124 weak_ptr_factory_.GetWeakPtr(), callback, local_id)); [all...] |
entry_update_performer.cc | 23 const std::string& local_id, 26 FileError error = metadata->GetResourceEntryById(local_id, entry); 51 const std::string& local_id) { 53 FileError error = metadata->GetResourceEntryById(local_id, &entry); 98 void EntryUpdatePerformer::UpdateEntry(const std::string& local_id, 111 metadata_, local_id, entry_ptr, parent_entry_ptr), 133 remove_performer_->Remove(entry->local_id(), callback); 155 weak_ptr_factory_.GetWeakPtr(), callback, entry->local_id())); 160 const std::string& local_id, 167 entry_revert_performer_->RevertEntry(local_id, callback) [all...] |
entry_revert_performer.cc | 21 const std::string& local_id, 42 const base::FilePath original_path = metadata->GetFilePath(local_id); 45 error = metadata->RemoveEntry(local_id); 56 entry.set_local_id(local_id); 87 void EntryRevertPerformer::RevertEntry(const std::string& local_id, 98 base::Unretained(metadata_), local_id, entry_ptr), 120 weak_ptr_factory_.GetWeakPtr(), callback, entry->local_id())); 125 const std::string& local_id, 135 base::Bind(&FinishRevert, metadata_, local_id, status,
|
entry_revert_performer_unittest.cc | 56 src_entry.local_id(), 64 GetLocalResourceEntryById(src_entry.local_id(), &result_entry)); 81 entry.set_parent_local_id(my_drive.local_id()); 84 std::string local_id; local 89 base::Unretained(metadata()), entry, &local_id), 97 local_id, 103 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntryById(local_id, &entry)); 128 entry.local_id(), 135 GetLocalResourceEntryById(entry.local_id(), &entry));
|
entry_revert_performer.h | 47 // Requests the server for metadata of the entry specified by |local_id| 51 void RevertEntry(const std::string& local_id, 63 const std::string& local_id,
|
entry_update_performer.h | 48 // |local_id| with the locally stored one. 51 void UpdateEntry(const std::string& local_id, 64 const std::string& local_id,
|
/external/chromium_org/mojo/system/ |
channel.cc | 71 MessageInTransit::EndpointId local_id; local 80 local_id = next_local_id_; 86 local_id_to_endpoint_info_map_[local_id] = EndpointInfo(message_pipe, port); 89 message_pipe->Attach(port, scoped_refptr<Channel>(this), local_id); 90 return local_id; 93 void Channel::RunMessagePipeEndpoint(MessageInTransit::EndpointId local_id, 100 local_id_to_endpoint_info_map_.find(local_id); 120 void Channel::DetachMessagePipeEndpoint(MessageInTransit::EndpointId local_id) { 121 DCHECK_NE(local_id, MessageInTransit::kInvalidEndpointId); 124 local_id_to_endpoint_info_map_.erase(local_id); 158 MessageInTransit::EndpointId local_id = message.destination_id(); local [all...] |
/external/chromium/chrome/browser/sync/syncable/ |
syncable_id.cc | 44 Id Id::CreateFromClientString(const string& local_id) { 46 if (local_id == "0") 49 id.s_ = string("c") + local_id;
|
/external/chromium_org/sync/syncable/ |
syncable_id.cc | 43 Id Id::CreateFromClientString(const string& local_id) { 45 if (local_id == "0") 48 id.s_ = string("c") + local_id;
|
/external/chromium/chrome/browser/sync/engine/ |
process_updates_command.cc | 105 syncable::Id local_id = SyncerUtil::FindLocalIdToUpdate(&trans, update); local 108 if (local_id.IsNull()) { 112 SyncerUtil::CreateNewEntry(&trans, local_id); 116 MutableEntry target_entry(&trans, GET_BY_ID, local_id); 126 if (local_id != server_id) {
|
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/ |
id_mapping_helper.cc | 75 std::string local_id = GetPublicIdFromGUID(*value, local 79 if (local_id.empty()) { 80 local_id = GetRandomId(*value, device_info->size()); 81 value->SetString(local_id, device->guid()); 83 device->set_public_id(local_id);
|