Searched defs:local_id (Results 1 - 25 of 55) sorted by relevance

123

/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 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 Dcreate_directory_operation.cc44 std::string local_id; local
45 FileError error = metadata->AddEntry(entry, &local_id);
50 error = metadata->GetFilePath(local_id, &path);
54 updated_local_ids->insert(local_id);
64 metadata, local_id, remaining_path, updated_local_ids, changed_files);
81 std::string local_id = util::kDriveGrandRootLocalId; local
85 metadata->GetChildId(local_id, components[i], &child_local_id);
91 local_id = child_local_id;
95 FileError error = metadata->GetResourceEntryById(local_id, &entry);
114 entry.local_id(),
[all...]
H A Dcreate_file_operation.cc59 entry->set_parent_local_id(parent.local_id());
64 std::string local_id; local
65 error = metadata->AddEntry(*entry, &local_id);
66 entry->set_local_id(local_id);
134 delegate_->OnEntryUpdatedByOperation(entry->local_id());
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 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 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 Doperation_test_base.cc38 const std::string& local_id) {
39 updated_local_ids_.insert(local_id);
43 DriveSyncErrorType type, const std::string& local_id) {
48 const std::string& local_id,
51 false : wait_for_sync_complete_handler_.Run(local_id, callback);
158 const std::string& local_id,
165 base::Unretained(metadata()), local_id, entry),
172 std::string local_id; local
178 base::Unretained(metadata()), path, &local_id),
182 return local_id;
37 OnEntryUpdatedByOperation( const std::string& local_id) argument
42 OnDriveSyncError( DriveSyncErrorType type, const std::string& local_id) argument
47 WaitForSyncComplete( const std::string& local_id, const FileOperationCallback& callback) argument
157 GetLocalResourceEntryById( const std::string& local_id, ResourceEntry* entry) argument
[all...]
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 Dsearch_operation.cc44 std::string local_id; local
46 entries[i]->file_id(), &local_id);
50 error = resource_metadata->GetResourceEntryById(local_id, &entry);
67 error = resource_metadata->AddEntry(entry, &local_id);
72 error = resource_metadata->GetFilePath(local_id, &path);
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 Dcopy_operation_unittest.cc29 const std::string& local_id,
31 *out_local_id = local_id;
74 EXPECT_EQ(1U, delegate()->updated_local_ids().count(entry.local_id()));
106 EXPECT_EQ(1U, delegate()->updated_local_ids().count(entry.local_id()));
175 EXPECT_TRUE(delegate()->updated_local_ids().count(entry.local_id()));
312 src_entry.local_id(),
333 EXPECT_TRUE(delegate()->updated_local_ids().count(dest_entry.local_id()));
347 dest_entry.local_id(),
378 EXPECT_TRUE(delegate()->updated_local_ids().count(old_dest_entry.local_id()));
450 directory.set_parent_local_id(directory_parent.local_id());
27 CopyWaitForSyncCompleteArguments(std::string* out_local_id, FileOperationCallback* out_callback, const std::string& local_id, const FileOperationCallback& callback) argument
[all...]
H A Ddownload_operation_unittest.cc444 new_file.set_parent_local_id(parent.local_id());
447 std::string local_id; local
454 &local_id),
/external/chromium_org/chrome/browser/chromeos/drive/
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 Dchange_list_processor.h39 DirectoryFetchInfo(const std::string& local_id, argument
42 : local_id_(local_id),
51 const std::string& local_id() const { return local_id_; } function in class:drive::internal::DirectoryFetchInfo
/external/chromium_org/chrome/browser/chromeos/drive/sync/
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 Dremove_performer_unittest.cc34 performer.Remove(entry.local_id(),
45 performer.Remove(entry.local_id(),
99 performer.Remove(entry.local_id(),
131 std::string local_id; local
138 &local_id),
144 performer.Remove(local_id, ClientContext(USER_INITIATED),
148 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntryById(local_id, &entry));
181 performer.Remove(src_entry.local_id(),
190 GetLocalResourceEntryById(src_entry.local_id(), &result_entry));
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 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...]
/external/chromium_org/chrome/browser/
H A Dupload_list.h17 // time,id[,local_id]
18 // time,id[,local_id]
22 // runner. A line may or may not contain "local_id".
28 const std::string& local_id);
35 std::string local_id; member in struct:UploadList::UploadInfo
/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_endpoint.cc71 MessageInTransit::EndpointId local_id) {
73 DCHECK_NE(local_id, MessageInTransit::kInvalidEndpointId);
79 local_id_ = local_id;
70 AttachToChannel(Channel* channel, MessageInTransit::EndpointId local_id) argument
/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 2799 milliseconds

123