Searched refs:local_id (Results 1 - 25 of 88) sorted by relevance

1234

/external/chromium_org/chrome/browser/chromeos/drive/file_system/
H A Doperation_delegate.cc11 const std::string& local_id,
10 WaitForSyncComplete( const std::string& local_id, const FileOperationCallback& callback) argument
H A Doperation_delegate.h39 virtual void OnEntryUpdatedByOperation(const std::string& local_id) {} argument
42 // |local_id| is the local ID of the resource entry.
44 const std::string& local_id) {}
48 virtual bool WaitForSyncComplete(const std::string& local_id,
43 OnDriveSyncError(DriveSyncErrorType type, const std::string& local_id) argument
H A Dmove_operation.cc25 std::string* local_id) {
30 *local_id = entry.local_id();
56 entry.set_parent_local_id(parent_entry.local_id());
90 std::string* local_id = new std::string; local
99 local_id),
104 base::Owned(local_id)));
110 const std::string* local_id,
116 delegate_->OnEntryUpdatedByOperation(*local_id);
21 UpdateLocalState(internal::ResourceMetadata* metadata, const base::FilePath& src_path, const base::FilePath& dest_path, FileChange* changed_files, std::string* local_id) argument
107 MoveAfterUpdateLocalState( const FileOperationCallback& callback, const FileChange* changed_files, const std::string* local_id, FileError error) argument
H A Dremove_operation.cc28 std::string* local_id,
31 FileError error = metadata->GetIdByPath(path, local_id);
35 error = metadata->GetResourceEntryById(*local_id, entry);
49 error = cache->Remove(*local_id);
85 std::string* local_id = new std::string; local
96 local_id,
102 base::Owned(local_id),
109 const std::string* local_id,
121 delegate_->OnEntryUpdatedByOperation(*local_id);
24 UpdateLocalState(internal::ResourceMetadata* metadata, internal::FileCache* cache, const base::FilePath& path, bool is_recursive, std::string* local_id, ResourceEntry* entry, base::FilePath* changed_path) argument
107 RemoveAfterUpdateLocalState( const FileOperationCallback& callback, const std::string* local_id, const ResourceEntry* entry, const base::FilePath* changed_path, FileError error) argument
H A Dtouch_operation.cc30 std::string* local_id) {
34 *local_id = entry->local_id();
67 std::string* local_id = new std::string; local
78 local_id),
84 base::Owned(local_id)));
91 const std::string* local_id,
105 delegate_->OnEntryUpdatedByOperation(*local_id);
25 UpdateLocalState(internal::ResourceMetadata* metadata, const base::FilePath& file_path, const base::Time& last_access_time, const base::Time& last_modified_time, ResourceEntry* entry, std::string* local_id) argument
87 TouchFileAfterUpdateLocalState( const base::FilePath& file_path, const FileOperationCallback& callback, const ResourceEntry* entry, const std::string* local_id, FileError error) argument
H A Dopen_file_operation.cc132 entry->local_id(),
137 entry->local_id(),
144 const std::string& local_id,
156 ++open_files_[local_id];
160 local_id,
165 const std::string& local_id,
168 DCHECK_GT(open_files_[local_id], 0);
170 if (--open_files_[local_id] == 0) {
172 open_files_.erase(local_id);
173 delegate_->OnEntryUpdatedByOperation(local_id);
142 OpenFileAfterOpenForWrite( const base::FilePath& local_file_path, const std::string& local_id, const OpenFileCallback& callback, scoped_ptr<base::ScopedClosureRunner>* file_closer, FileError error) argument
164 CloseFile( const std::string& local_id, scoped_ptr<base::ScopedClosureRunner> file_closer) argument
[all...]
H A Dtruncate_operation.cc33 const std::string& local_id,
40 FileError error = cache->OpenForWrite(local_id, &file_closer);
129 metadata_, cache_, entry->local_id(), local_file_path, length),
132 weak_ptr_factory_.GetWeakPtr(), entry->local_id(), callback));
136 const std::string& local_id,
142 delegate_->OnEntryUpdatedByOperation(local_id);
31 TruncateOnBlockingPool(internal::ResourceMetadata* metadata, internal::FileCache* cache, const std::string& local_id, const base::FilePath& local_cache_path, int64 length) argument
135 TruncateAfterTruncateOnBlockingPool( const std::string& local_id, const FileOperationCallback& callback, FileError error) argument
H A Dget_file_for_saving_operation.cc29 const std::string& local_id,
32 FileError error = cache->OpenForWrite(local_id, file_closer);
35 return metadata->GetResourceEntryById(local_id, entry);
120 const std::string& local_id = entry->local_id(); local
130 local_id,
155 const std::string& local_id = entry->local_id(); local
165 local_id,
178 entry->local_id()
26 OpenCacheFileForWrite( internal::ResourceMetadata* metadata, internal::FileCache* cache, const std::string& local_id, scoped_ptr<base::ScopedClosureRunner>* file_closer, ResourceEntry* entry) argument
190 OnWriteEvent( const std::string& local_id, scoped_ptr<base::ScopedClosureRunner> file_closer) argument
[all...]
H A Dcopy_operation.cc52 parent_local_id(parent_entry.local_id()),
65 std::string local_id; // the local_id of the file (if exists in metadata.) member in struct:drive::file_system::CopyOperation::TransferJsonGdocParams
109 updated_local_ids->push_back(dest_entry.local_id());
130 entry.set_parent_local_id(params->parent_entry.local_id());
140 std::string local_id; local
141 error = metadata->AddEntry(entry, &local_id);
144 updated_local_ids->push_back(local_id);
154 error = cache->GetFile(params->src_entry.local_id(), &cache_file_path);
158 return cache->Store(local_id, st
183 std::string local_id; local
198 UpdateLocalStateForScheduleTransfer( internal::ResourceMetadata* metadata, internal::FileCache* cache, const base::FilePath& local_src_path, const base::FilePath& remote_dest_path, ResourceEntry* entry, std::string* local_id) argument
246 std::string local_id; local
630 std::string* local_id = new std::string; local
651 ScheduleTransferRegularFileAfterUpdateLocalState( const FileOperationCallback& callback, const base::FilePath& remote_dest_path, const ResourceEntry* entry, std::string* local_id, FileError error) argument
[all...]
/external/chromium_org/chrome/browser/chromeos/drive/sync/
H A Dremove_performer.cc28 const std::string& local_id) {
30 FileError error = metadata->GetResourceEntryById(local_id, &entry);
40 const std::string& local_id,
46 base::Unretained(metadata), local_id),
73 // Returns |entry| corresponding to |local_id|.
76 const std::string& local_id,
78 FileError error = metadata->GetResourceEntryById(local_id, entry);
81 return metadata->RemoveEntry(local_id);
84 void RemovePerformer::Remove(const std::string& local_id, argument
94 base::Bind(&TryToRemoveLocally, metadata_, local_id, entr
27 UpdateLocalStateAfterUnparent(ResourceMetadata* metadata, const std::string& local_id) argument
38 RemoveEntryOnUIThread(base::SequencedTaskRunner* blocking_task_runner, ResourceMetadata* metadata, const std::string& local_id, const FileOperationCallback& callback) argument
75 TryToRemoveLocally(ResourceMetadata* metadata, const std::string& local_id, ResourceEntry* entry) argument
131 TrashResource(const ClientContext& context, const FileOperationCallback& callback, const std::string& resource_id, const std::string& local_id) argument
145 TrashResourceAfterUpdateRemoteState( const ClientContext& context, const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status) argument
173 UnparentResource(const ClientContext& context, const FileOperationCallback& callback, const std::string& resource_id, const std::string& local_id) argument
187 UnparentResourceAfterGetFileResource( const ClientContext& context, const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::FileResource> file_resource) argument
238 UnparentResourceAfterUpdateRemoteState( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status) argument
[all...]
H A Dremove_performer.h52 void Remove(const std::string& local_id,
67 const std::string& local_id);
73 const std::string& local_id,
80 const std::string& local_id);
86 const std::string& local_id,
93 const std::string& local_id,
H A Dentry_revert_performer.cc25 const std::string& local_id,
48 error = metadata->GetFilePath(local_id, &original_path);
53 error = metadata->RemoveEntry(local_id);
69 entry.set_local_id(local_id);
75 error = metadata->GetFilePath(local_id, &new_path);
103 void EntryRevertPerformer::RevertEntry(const std::string& local_id, argument
115 base::Unretained(metadata_), local_id, entry_ptr),
141 weak_ptr_factory_.GetWeakPtr(), callback, entry->local_id()));
146 const std::string& local_id,
158 local_id,
24 FinishRevert(ResourceMetadata* metadata, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::FileResource> file_resource, FileChange* changed_files) argument
144 RevertEntryAfterGetFileResource( const FileOperationCallback& callback, const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::FileResource> entry) argument
[all...]
H A Dentry_update_performer_unittest.cc39 FileError StoreAndMarkDirty(const std::string& local_id, argument
53 local_id, std::string(), path,
79 src_entry.set_parent_local_id(dest_entry.local_id());
101 src_entry.local_id(),
167 src_entry->local_id(),
200 const std::string local_id = GetLocalId(kFilePath); local
201 EXPECT_FALSE(local_id.empty());
204 EXPECT_EQ(FILE_ERROR_OK, StoreAndMarkDirty(local_id, kTestFileContent));
212 local_id,
244 const std::string local_id local
322 const std::string local_id = GetLocalId(kFilePath); local
387 std::string local_id; local
442 std::string local_id; local
516 std::string local_id; local
[all...]
H A Dentry_revert_performer_unittest.cc61 src_entry.local_id(),
70 GetLocalResourceEntryById(src_entry.local_id(), &result_entry));
88 entry.set_parent_local_id(my_drive.local_id());
91 std::string local_id; local
96 base::Unretained(metadata()), entry, &local_id),
104 local_id,
111 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntryById(local_id, &entry));
136 entry.local_id(),
144 GetLocalResourceEntryById(entry.local_id(), &entry));
H A Dentry_update_performer.cc43 const std::string& local_id,
45 FileError error = metadata->GetResourceEntryById(local_id,
55 error = metadata->GetFilePath(local_id, &local_state->drive_file_path);
66 error = cache->Store(local_id, std::string(), empty_file,
70 error = metadata->GetResourceEntryById(local_id, &local_state->entry);
77 !cache->IsOpenedForWrite(local_id)) {
80 error = cache->UpdateMd5(local_id);
83 error = metadata->GetResourceEntryById(local_id, &local_state->entry);
90 error = cache->ClearDirty(local_id);
94 error = cache->GetFile(local_id,
41 PrepareUpdate(ResourceMetadata* metadata, FileCache* cache, const std::string& local_id, EntryUpdatePerformer::LocalState* local_state) argument
118 FinishUpdate(ResourceMetadata* metadata, FileCache* cache, const std::string& local_id, scoped_ptr<google_apis::FileResource> file_resource, FileChange* changed_files) argument
217 UpdateEntry(const std::string& local_id, const ClientContext& context, const FileOperationCallback& callback) argument
356 UpdateEntryAfterUpdateResource( const ClientContext& context, const FileOperationCallback& callback, const std::string& local_id, scoped_ptr<base::ScopedClosureRunner> loader_lock, google_apis::GDataErrorCode status, scoped_ptr<google_apis::FileResource> entry) argument
[all...]
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dsync_client.cc57 const std::string& local_id = it->GetID(); local
60 to_update->push_back(local_id);
76 to_fetch->push_back(local_id);
82 to_update->push_back(local_id);
96 const std::string& local_id = it->GetID(); local
107 FileError error = cache->Remove(local_id);
109 LOG(WARNING) << "Failed to remove cache entry: " << local_id;
113 error = cache->Pin(local_id);
115 LOG(WARNING) << "Failed to pin cache entry: " << local_id;
119 local_ids->push_back(local_id);
125 GetParentResourceEntry(ResourceMetadata* metadata, const std::string& local_id, ResourceEntry* parent) argument
204 AddFetchTask(const std::string& local_id) argument
209 RemoveFetchTask(const std::string& local_id) argument
229 AddUpdateTask(const ClientContext& context, const std::string& local_id) argument
235 WaitForUpdateTaskToComplete( const std::string& local_id, const FileOperationCallback& callback) argument
249 PerformFetchTask(const std::string& local_id, const ClientContext& context) argument
262 AddFetchTaskInternal(const std::string& local_id, const base::TimeDelta& delay) argument
275 PerformUpdateTask(const std::string& local_id, const ClientContext& context) argument
288 AddUpdateTaskInternal(const ClientContext& context, const std::string& local_id, const base::TimeDelta& delay) argument
349 const std::string& local_id = key.second; local
399 const std::string& local_id = (*to_update)[i]; local
401 AddUpdateTask(ClientContext(BACKGROUND), local_id); local
405 const std::string& local_id = (*to_fetch)[i]; local
418 OnTaskComplete(SyncType type, const std::string& local_id, FileError error) argument
431 DVLOG(1) << "Completed: type = " << type << ", id = " << local_id; local
463 DVLOG(1) << "Running again: type = " << type << ", id = " << local_id; local
477 OnFetchFileComplete(const std::string& local_id, FileError error, const base::FilePath& local_path, scoped_ptr<ResourceEntry> entry) argument
[all...]
H A Dremove_stale_cache_files_unittest.cc66 std::string local_id; local
70 EXPECT_EQ(FILE_ERROR_OK, resource_metadata_->AddEntry(entry, &local_id));
73 cache_->Store(local_id, md5_cache, dummy_file,
81 resource_metadata_->GetResourceEntryById(local_id, &entry));
93 std::string local_id; local
97 EXPECT_EQ(FILE_ERROR_OK, resource_metadata_->AddEntry(entry, &local_id));
100 cache_->Store(local_id, std::string(), dummy_file,
108 resource_metadata_->GetResourceEntryById(local_id, &entry));
H A Dsync_client.h62 void AddFetchTask(const std::string& local_id);
65 void RemoveFetchTask(const std::string& local_id);
68 void AddUpdateTask(const ClientContext& context, const std::string& local_id);
72 bool WaitForUpdateTaskToComplete(const std::string& local_id,
121 base::Closure PerformFetchTask(const std::string& local_id,
125 void AddFetchTaskInternal(const std::string& local_id,
129 base::Closure PerformUpdateTask(const std::string& local_id,
134 const std::string& local_id,
157 const std::string& local_id,
160 // Called when the file for |local_id| i
[all...]
H A Dresource_metadata_unittest.cc94 std::string local_id; local
96 util::GetDriveMyDriveRootPath(), &local_id));
97 const std::string root_local_id = local_id;
100 CreateDirectoryEntry("dir1", root_local_id), &local_id));
101 const std::string local_id_dir1 = local_id;
104 CreateDirectoryEntry("dir2", root_local_id), &local_id));
105 const std::string local_id_dir2 = local_id;
108 CreateDirectoryEntry("dir3", local_id_dir1), &local_id));
109 const std::string local_id_dir3 = local_id;
112 CreateFileEntry("file4", local_id_dir1), &local_id));
345 std::string local_id; local
388 std::string local_id; local
453 std::string local_id; local
531 std::string local_id; local
[all...]
H A Ddirectory_loader.cc35 const std::string& local_id,
53 error = resource_metadata->GetResourceEntryById(local_id, entry);
67 directory_fetch_info.local_id(), &directory);
81 return resource_metadata->GetFilePath(directory_fetch_info.local_id(),
170 loader_->SendEntries(directory_fetch_info_.local_id(), *refreshed_entries);
286 entry->local_id(),
291 const std::string& local_id = directory_fetch_info.local_id(); local
295 pending_load_callback_[local_id].push_back(callback_state);
297 // If loading task for |local_id| i
33 CheckLocalState(ResourceMetadata* resource_metadata, const google_apis::AboutResource& about_resource, const std::string& local_id, ResourceEntry* entry, int64* local_changestamp) argument
336 ReadDirectoryAfterGetAboutResource( const std::string& local_id, google_apis::GDataErrorCode status, scoped_ptr<google_apis::AboutResource> about_resource) argument
371 ReadDirectoryAfterCheckLocalState( scoped_ptr<google_apis::AboutResource> about_resource, const std::string& local_id, const ResourceEntry* entry, const int64* local_changestamp, FileError error) argument
413 OnDirectoryLoadComplete(const std::string& local_id, FileError error) argument
446 OnDirectoryLoadCompleteAfterRead( const std::string& local_id, const ResourceEntryVector* entries, FileError error) argument
465 SendEntries(const std::string& local_id, const ResourceEntryVector& entries) argument
[all...]
H A Ddirectory_loader.h86 const std::string& local_id,
91 const std::string& local_id,
99 void OnDirectoryLoadComplete(const std::string& local_id, FileError error);
100 void OnDirectoryLoadCompleteAfterRead(const std::string& local_id,
105 void SendEntries(const std::string& local_id,
/external/chromium_org/sync/syncable/
H A Dsyncable_id.cc43 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 Dchannel.cc103 MessageInTransit::EndpointId local_id; local
115 local_id = next_local_id_;
117 local_id_to_endpoint_map_[local_id] = endpoint;
120 endpoint->AttachToChannel(this, local_id);
121 return local_id;
124 bool Channel::RunMessagePipeEndpoint(MessageInTransit::EndpointId local_id, argument
135 local_id_to_endpoint_map_.find(local_id);
146 "(local ID " << local_id << ", remote ID " << remote_id << ")";
157 MessageInTransit::EndpointId local_id,
162 DCHECK(local_id_to_endpoint_map_.find(local_id) !
156 RunRemoteMessagePipeEndpoint( MessageInTransit::EndpointId local_id, MessageInTransit::EndpointId remote_id) argument
199 DetachMessagePipeEndpoint( MessageInTransit::EndpointId local_id, MessageInTransit::EndpointId remote_id) argument
318 MessageInTransit::EndpointId local_id = message_view.destination_id(); local
443 RemoveMessagePipeEndpoint( MessageInTransit::EndpointId local_id, MessageInTransit::EndpointId remote_id) argument
501 SendControlMessage(MessageInTransit::Subtype subtype, MessageInTransit::EndpointId local_id, MessageInTransit::EndpointId remote_id) argument
[all...]
H A Dchannel.h89 // Runs the message pipe with the given |local_id| (previously attached), with
92 // false on failure, in particular if no message pipe with |local_id| is
94 bool RunMessagePipeEndpoint(MessageInTransit::EndpointId local_id,
98 // must already be attached); |local_id| and |remote_id| are relative to this
99 // channel (i.e., |local_id| is the other side's remote ID and |remote_id| is
103 void RunRemoteMessagePipeEndpoint(MessageInTransit::EndpointId local_id,
117 // |local_id| may be reused for another message pipe.
118 void DetachMessagePipeEndpoint(MessageInTransit::EndpointId local_id,
148 // particular if no message pipe with |local_id| is attached. Only called on
150 bool RemoveMessagePipeEndpoint(MessageInTransit::EndpointId local_id,
[all...]
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/
H A Did_mapping_helper.cc75 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);

Completed in 270 milliseconds

1234