/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
H A D | operation_observer.h | 26 const std::string& local_id) = 0; 29 virtual void OnEntryUpdatedByOperation(const std::string& local_id) {} argument
|
H A D | 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, kMd [all...] |
H A D | 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); 23 UpdateLocalState(internal::ResourceMetadata* metadata, internal::FileCache* cache, const base::FilePath& path, bool is_recursive, std::string* local_id, base::FilePath* changed_directory_path) argument 103 RemoveAfterUpdateLocalState( const FileOperationCallback& callback, const std::string* local_id, const base::FilePath* changed_directory_path, FileError error) argument [all...] |
H A D | 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); 24 UpdateLocalState(internal::ResourceMetadata* metadata, const base::FilePath& file_path, const base::Time& last_access_time, const base::Time& last_modified_time, std::string* local_id) argument 82 TouchFileAfterUpdateLocalState( const base::FilePath& file_path, const FileOperationCallback& callback, const std::string* local_id, FileError error) argument
|
H A D | 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) { argument 159 observer_->OnCacheFileUploadNeededByOperation(local_id);
|
H A D | 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); 20 UpdateLocalState(internal::ResourceMetadata* metadata, const base::FilePath& src_path, const base::FilePath& dest_path, bool preserve_last_modified, std::set<base::FilePath>* changed_directories, std::string* local_id) argument 113 MoveAfterUpdateLocalState( const FileOperationCallback& callback, const std::set<base::FilePath>* changed_directories, const std::string* local_id, FileError error) argument
|
H A D | 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) { argument 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); 137 OpenFileAfterMarkDirty( const base::FilePath& local_file_path, const std::string& local_id, const OpenFileCallback& callback, FileError error) argument [all...] |
H A D | operation_test_base.cc | 35 const std::string& local_id) { 36 upload_needed_local_ids_.insert(local_id); 40 const std::string& local_id) { 41 updated_local_ids_.insert(local_id); 143 const std::string& local_id, 150 base::Unretained(metadata()), local_id, entry), 157 std::string local_id; local 163 base::Unretained(metadata()), path, &local_id), 167 return local_id; 34 OnCacheFileUploadNeededByOperation( const std::string& local_id) argument 39 OnEntryUpdatedByOperation( const std::string& local_id) argument 142 GetLocalResourceEntryById( const std::string& local_id, ResourceEntry* entry) argument
|
H A D | search_operation.cc | 43 std::string local_id; local 45 entries[i]->resource_id(), &local_id); 49 error = resource_metadata->GetResourceEntryById(local_id, &entry); 65 error = resource_metadata->AddEntry(entry, &local_id); 70 SearchResultInfo(resource_metadata->GetFilePath(local_id),
|
H A D | truncate_operation.cc | 32 const std::string& local_id, 38 FileError error = cache->MarkDirty(local_id); 134 metadata_, cache_, entry->local_id(), local_file_path, length), 137 weak_ptr_factory_.GetWeakPtr(), entry->local_id(), callback)); 141 const std::string& local_id, 147 observer_->OnCacheFileUploadNeededByOperation(local_id); 30 TruncateOnBlockingPool(internal::ResourceMetadata* metadata, internal::FileCache* cache, const std::string& local_id, const base::FilePath& local_cache_path, int64 length) argument 140 TruncateAfterTruncateOnBlockingPool( const std::string& local_id, const FileOperationCallback& callback, FileError error) argument
|
H A D | create_directory_operation.cc | 45 std::string local_id; local 46 result = metadata->AddEntry(entry, &local_id); 50 result = metadata->GetIdByResourceId(entry.resource_id(), &local_id); 53 *file_path = metadata->GetFilePath(local_id); 118 std::string local_id = util::kDriveGrandRootLocalId; local 120 std::string child_local_id = metadata->GetChildId(local_id, components[i]); 124 local_id = child_local_id; 127 FileError error = metadata->GetResourceEntryById(local_id, entry);
|
H A D | create_file_operation.cc | 100 std::string local_id; local 101 error = metadata->AddEntry(entry, &local_id); 106 error = metadata->GetIdByResourceId(entry.resource_id(), &local_id); 111 *file_path = metadata->GetFilePath(local_id); 119 local_id, 127 << ", local_id: " << local_id;
|
H A D | 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, 71 UpdateFileLocalState( internal::ResourceMetadata* metadata, internal::FileCache* cache, const std::string& local_id, scoped_ptr<google_apis::ResourceEntry> resource_entry, base::FilePath* drive_file_path) argument 123 UpdateFileByLocalId( const std::string& local_id, const ClientContext& context, ContentCheckMode check, const FileOperationCallback& callback) argument 174 UpdateFileAfterUpload( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode error, scoped_ptr<google_apis::ResourceEntry> resource_entry) argument [all...] |
/external/chromium/chrome/browser/sync/syncable/ |
H A D | syncable_id.cc | 44 Id Id::CreateFromClientString(const string& local_id) { argument 46 if (local_id == "0") 49 id.s_ = string("c") + local_id;
|
/external/chromium_org/chrome/browser/chromeos/drive/sync/ |
H A D | 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));
|
H A D | 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, argument 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, 20 FinishRevert(ResourceMetadata* metadata, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::ResourceEntry> resource_entry, std::set<base::FilePath>* changed_directories) argument 123 RevertEntryAfterGetResourceEntry( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::ResourceEntry> resource_entry) argument
|
H A D | 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, argument 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, callbac 22 PrepareUpdate(ResourceMetadata* metadata, const std::string& local_id, ResourceEntry* entry, ResourceEntry* parent_entry) argument 50 FinishUpdate(ResourceMetadata* metadata, const std::string& local_id) argument 158 UpdateEntryAfterUpdateResource( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::ResourceEntry> resource_entry) argument [all...] |
H A D | 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, argument 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)); 23 UpdateLocalStateAfterUnparent(ResourceMetadata* metadata, const std::string& local_id) argument 34 RemoveEntryOnUIThread(base::SequencedTaskRunner* blocking_task_runner, ResourceMetadata* metadata, const std::string& local_id, const FileOperationCallback& callback) argument 114 TrashResource(const FileOperationCallback& callback, const std::string& resource_id, const std::string& local_id) argument 127 TrashResourceAfterUpdateRemoteState( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status) argument 152 UnparentResource( const FileOperationCallback& callback, const std::string& resource_id, const std::string& local_id) argument 166 UnparentResourceAfterGetResourceEntry( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::ResourceEntry> resource_entry) argument 215 UnparentResourceAfterUpdateRemoteState( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status) argument [all...] |
/external/chromium_org/sync/syncable/ |
H A D | syncable_id.cc | 43 Id Id::CreateFromClientString(const string& local_id) { argument 45 if (local_id == "0") 48 id.s_ = string("c") + local_id;
|
/external/chromium_org/mojo/system/ |
H A D | proxy_message_pipe_endpoint.cc | 107 MessageInTransit::EndpointId local_id) { 109 DCHECK_NE(local_id, MessageInTransit::kInvalidEndpointId); 115 local_id_ = local_id; 106 Attach(scoped_refptr<Channel> channel, MessageInTransit::EndpointId local_id) argument
|
H A D | 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, argument 100 local_id_to_endpoint_info_map_.find(local_id); 120 void Channel::DetachMessagePipeEndpoint(MessageInTransit::EndpointId local_id) { argument 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...] |
H A D | message_pipe.cc | 164 MessageInTransit::EndpointId local_id) { 167 DCHECK_NE(local_id, MessageInTransit::kInvalidEndpointId); 172 endpoints_[port]->Attach(channel, local_id); 162 Attach(unsigned port, scoped_refptr<Channel> channel, MessageInTransit::EndpointId local_id) argument
|
/external/chromium/chrome/browser/sync/engine/ |
H A D | 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/ |
H A D | 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);
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
H A D | search_metadata_unittest.cc | 70 std::string local_id; local 75 util::kDriveGrandRootLocalId), &local_id)); 76 const std::string root_local_id = local_id; 80 "Directory 1", "dir1", 1, root_local_id), &local_id)); 81 const std::string dir1_local_id = local_id; 85 "SubDirectory File 1.txt", "file1a", 2, dir1_local_id), &local_id)); 87 local_id, temp_file_md5, temp_file, FileCache::FILE_OPERATION_COPY)); 93 EXPECT_EQ(FILE_ERROR_OK, resource_metadata_->AddEntry(entry, &local_id)); 97 "Directory 2 excludeDir-test", "dir2", 4, root_local_id), &local_id)); 102 root_local_id), &local_id)); [all...] |