HomeSort by relevance Sort by last modified time
    Searched refs:local_id (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /external/chromium_org/chrome/browser/chromeos/drive/file_system/
operation_delegate.cc 11 const std::string& local_id,
operation_delegate.h 39 virtual void OnEntryUpdatedByOperation(const std::string& local_id) {}
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,
move_operation.cc 25 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);
remove_operation.cc 28 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);
touch_operation.cc 30 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);
open_file_operation.cc 132 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);
    [all...]
truncate_operation.cc 33 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);
get_file_for_saving_operation.cc 29 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().c_str()
    [all...]
copy_operation.cc 52 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, std::string(), cache_file_path
183 std::string local_id; local
246 std::string local_id; local
630 std::string* local_id = new std::string; local
    [all...]
operation_test_base.h 52 const std::string& local_id,
62 const std::string& local_id) OVERRIDE;
64 const std::string& local_id) OVERRIDE;
66 const std::string& local_id,
112 FileError GetLocalResourceEntryById(const std::string& local_id,
  /external/chromium_org/chrome/browser/chromeos/drive/sync/
remove_performer.cc 28 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,
94 base::Bind(&TryToRemoveLocally, metadata_, local_id, entry)
    [all...]
remove_performer.h 52 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,
entry_revert_performer.cc 25 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,
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,
    [all...]
entry_update_performer_unittest.cc 39 FileError StoreAndMarkDirty(const std::string& local_id,
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 = GetLocalId(kFilePath) 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...]
entry_revert_performer_unittest.cc 61 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));
entry_update_performer.cc 43 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, &local_state->cache_file_path)
    [all...]
  /external/chromium_org/chrome/browser/chromeos/drive/
sync_client.cc 57 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);
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
431 DVLOG(1) << "Completed: type = " << type << ", id = " << local_id; local
463 DVLOG(1) << "Running again: type = " << type << ", id = " << local_id; local
    [all...]
remove_stale_cache_files_unittest.cc 66 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));
sync_client.h 62 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| is fetched
    [all...]
resource_metadata_unittest.cc 94 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...]
directory_loader.cc 35 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| is already running, do nothing
    [all...]
directory_loader.h 86 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/
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_org/mojo/system/
channel.cc 103 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,
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) !
318 MessageInTransit::EndpointId local_id = message_view.destination_id(); local
    [all...]
channel.h 89 // 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...]

Completed in 343 milliseconds

1 2 3 4