/external/chromium_org/google_apis/drive/ |
D | gdata_wapi_parser_unittest.cc | 61 const ResourceEntry* folder_entry = feed->entries()[0]; in TEST() 103 const ResourceEntry* file_entry = feed->entries()[1]; in TEST() 132 const ResourceEntry* resource_entry = feed->entries()[2]; in TEST() 140 const ResourceEntry* app_entry = feed->entries()[3]; in TEST() 156 scoped_ptr<ResourceEntry> entry(ResourceEntry::ExtractAndParse(*document)); in TEST() 240 ResourceEntry::KIND_OF_GOOGLE_DOCUMENT | in TEST() 241 ResourceEntry::KIND_OF_HOSTED_DOCUMENT, in TEST() 242 ResourceEntry::ClassifyEntryKindByFileExtension( in TEST() 245 ResourceEntry::KIND_OF_GOOGLE_DOCUMENT | in TEST() 246 ResourceEntry::KIND_OF_HOSTED_DOCUMENT, in TEST() [all …]
|
D | gdata_wapi_parser.cc | 365 ResourceEntry::ResourceEntry() in ResourceEntry() function in google_apis::ResourceEntry 376 ResourceEntry::~ResourceEntry() { in ~ResourceEntry() 379 bool ResourceEntry::HasFieldPresent(const base::Value* value, in HasFieldPresent() 385 bool ResourceEntry::ParseChangestamp(const base::Value* value, in ParseChangestamp() 402 void ResourceEntry::RegisterJSONConverter( in RegisterJSONConverter() 403 base::JSONValueConverter<ResourceEntry>* converter) { in RegisterJSONConverter() 407 kResourceIdField, &ResourceEntry::resource_id_); in RegisterJSONConverter() 408 converter->RegisterStringField(kIDField, &ResourceEntry::id_); in RegisterJSONConverter() 409 converter->RegisterStringField(kTitleTField, &ResourceEntry::title_); in RegisterJSONConverter() 411 kPublishedField, &ResourceEntry::published_time_, in RegisterJSONConverter() [all …]
|
D | gdata_wapi_parser.h | 97 friend class ResourceEntry; 143 friend class ResourceEntry; 174 friend class ResourceEntry; 213 friend class ResourceEntry; 248 friend class ResourceEntry; 313 class ResourceEntry : public CommonMetadata { 315 ResourceEntry(); 316 virtual ~ResourceEntry(); 329 static scoped_ptr<ResourceEntry> ExtractAndParse(const base::Value& value); 335 static scoped_ptr<ResourceEntry> CreateFrom(const base::Value& value); [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | change_list_processor_unittest.cc | 48 ResourceEntry directory; in CreateBaseChangeList() 74 ResourceEntry file; in CreateBaseChangeList() 151 scoped_ptr<ResourceEntry> GetResourceEntry(const std::string& path) { in GetResourceEntry() 152 scoped_ptr<ResourceEntry> entry(new ResourceEntry); in GetResourceEntry() 199 scoped_ptr<ResourceEntry> entry = GetResourceEntry(kExpected[i].path); in TEST_F() 203 ResourceEntry parent_entry; in TEST_F() 220 ResourceEntry new_folder; in TEST_F() 227 ResourceEntry new_file; in TEST_F() 259 ResourceEntry entry; in TEST_F() 298 ResourceEntry entry; in TEST_F() [all …]
|
D | change_list_processor.h | 26 class ResourceEntry; variable 75 const std::vector<ResourceEntry>& entries() const { return entries_; } in entries() 76 std::vector<ResourceEntry>* mutable_entries() { return &entries_; } in mutable_entries() 91 std::vector<ResourceEntry> entries_; 125 std::vector<ResourceEntry>* out_refreshed_entries); 130 ResourceEntry* entry, 134 typedef std::map<std::string /* resource_id */, ResourceEntry> 146 FileError ApplyEntry(const ResourceEntry& entry); 149 void UpdateChangedDirs(const ResourceEntry& entry);
|
D | resource_entry_conversion.cc | 21 ResourceEntry* out_entry, in ConvertChangeResourceToResourceEntry() 26 ResourceEntry converted; in ConvertChangeResourceToResourceEntry() 44 ResourceEntry* out_entry, in ConvertFileResourceToResourceEntry() 48 ResourceEntry converted; in ConvertFileResourceToResourceEntry() 83 google_apis::ResourceEntry::ClassifyEntryKind(entry_kind); in ConvertFileResourceToResourceEntry() 85 google_apis::ResourceEntry::KIND_OF_FILE; in ConvertFileResourceToResourceEntry() 87 google_apis::ResourceEntry::KIND_OF_HOSTED_DOCUMENT; in ConvertFileResourceToResourceEntry() 89 google_apis::ResourceEntry::KIND_OF_FOLDER; in ConvertFileResourceToResourceEntry() 103 google_apis::ResourceEntry::GetHostedDocumentExtension(entry_kind); in ConvertFileResourceToResourceEntry() 143 void ConvertResourceEntryToFileInfo(const ResourceEntry& entry, in ConvertResourceEntryToFileInfo()
|
D | resource_metadata.h | 23 typedef std::vector<ResourceEntry> ResourceEntryVector; 60 FileError AddEntry(const ResourceEntry& entry, std::string* out_id); 67 ResourceEntry* out_entry); 71 ResourceEntry* out_entry); 82 FileError RefreshEntry(const ResourceEntry& entry); 123 FileError PutEntryUnderDirectory(const ResourceEntry& entry); 126 FileError GetDeduplicatedBaseName(const ResourceEntry& entry,
|
D | resource_metadata.cc | 125 ResourceEntry entry; in SetUpDefaultEntries() 128 ResourceEntry root; in SetUpDefaultEntries() 151 ResourceEntry other_dir; in SetUpDefaultEntries() 174 ResourceEntry trash_dir; in SetUpDefaultEntries() 191 ResourceEntry mydrive; in SetUpDefaultEntries() 225 FileError ResourceMetadata::AddEntry(const ResourceEntry& entry, in AddEntry() 233 ResourceEntry parent; in AddEntry() 242 ResourceEntry existing_entry; in AddEntry() 259 ResourceEntry new_entry(entry); in AddEntry() 280 ResourceEntry entry; in RemoveEntry() [all …]
|
D | change_list_processor.cc | 57 bool ShouldApplyChange(const ResourceEntry& local_entry, in ShouldApplyChange() 58 const ResourceEntry& remote_entry) { in ShouldApplyChange() 59 if (local_entry.metadata_edit_state() == ResourceEntry::CLEAN) in ShouldApplyChange() 148 std::vector<ResourceEntry>* entries = change_list->mutable_entries(); in Apply() 150 ResourceEntry* entry = &(*entries)[i]; in Apply() 202 ResourceEntry root; in ApplyEntryMap() 284 ResourceEntry parent_entry; in ApplyEntryMap() 343 FileError ChangeListProcessor::ApplyEntry(const ResourceEntry& entry) { in ApplyEntry() 349 ResourceEntry new_entry(entry); in ApplyEntry() 359 ResourceEntry existing_entry; in ApplyEntry() [all …]
|
D | resource_entry_conversion.h | 19 class ResourceEntry; variable 37 ResourceEntry* out_entry, 44 ResourceEntry* out_entry, 48 void ConvertResourceEntryToFileInfo(const ResourceEntry& entry,
|
D | file_system_unittest.cc | 42 FileError error, scoped_ptr<ResourceEntry> entry) { in AsyncInitializationCallback() 151 scoped_ptr<ResourceEntry> GetResourceEntrySync( in GetResourceEntrySync() 154 scoped_ptr<ResourceEntry> entry; in GetResourceEntrySync() 233 ResourceEntry root; in SetUpTestFileSystem() 242 ResourceEntry file1; in SetUpTestFileSystem() 252 ResourceEntry dir1; in SetUpTestFileSystem() 261 ResourceEntry file2; in SetUpTestFileSystem() 271 ResourceEntry dir2; in SetUpTestFileSystem() 280 ResourceEntry file3; in SetUpTestFileSystem() 328 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(dest_file_path); in TEST_F() [all …]
|
D | resource_metadata_unittest.cc | 41 ResourceEntry CreateDirectoryEntryWithResourceId( in CreateDirectoryEntryWithResourceId() 45 ResourceEntry entry; in CreateDirectoryEntryWithResourceId() 55 ResourceEntry CreateDirectoryEntry(const std::string& title, in CreateDirectoryEntry() 62 ResourceEntry CreateFileEntryWithResourceId( in CreateFileEntryWithResourceId() 66 ResourceEntry entry; in CreateFileEntryWithResourceId() 77 ResourceEntry CreateFileEntry(const std::string& title, in CreateFileEntry() 182 ResourceEntry entry; in TEST_F() 227 ResourceEntry entry; in TEST_F() 240 ResourceEntry file_entry(entry); in TEST_F() 295 ResourceEntry dir_entry(entry); in TEST_F() [all …]
|
D | search_metadata.cc | 29 const ResourceEntry& entry, in ResultCandidate() 37 ResourceEntry entry; 43 bool CompareByTimestamp(const ResourceEntry& a, const ResourceEntry& b) { in CompareByTimestamp() 112 FileError IsHidden(const ResourceEntry& entry, bool* result) { in IsHidden() 121 ResourceEntry parent; in IsHidden() 153 bool IsEligibleEntry(const ResourceEntry& entry, int options) { in IsEligibleEntry() 169 switch (google_apis::ResourceEntry::GetEntryKindFromExtension( in IsEligibleEntry() 202 const ResourceEntry& entry = it->GetValue(); in MaybeAddEntryToResult() 246 ResourceEntry mydrive; in SearchMetadataOnBlockingPool()
|
D | resource_metadata_storage.h | 30 class ResourceEntry; variable 57 const ResourceEntry& GetValue() const; 66 ResourceEntry entry_; 112 FileError PutEntry(const ResourceEntry& entry); 115 FileError GetEntry(const std::string& id, ResourceEntry* out_entry);
|
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
D | download_operation_unittest.cc | 38 ResourceEntry src_entry; in TEST_F() 48 scoped_ptr<ResourceEntry> entry; in TEST_F() 77 scoped_ptr<ResourceEntry> entry; in TEST_F() 93 ResourceEntry src_entry; in TEST_F() 103 scoped_ptr<ResourceEntry> entry; in TEST_F() 142 ResourceEntry cached_file_entry; in TEST_F() 152 ResourceEntry src_entry; in TEST_F() 167 scoped_ptr<ResourceEntry> entry; in TEST_F() 185 ResourceEntry src_entry; in TEST_F() 204 scoped_ptr<ResourceEntry> entry; in TEST_F() [all …]
|
D | download_operation.cc | 79 ResourceEntry* entry, in CheckPreConditionForEnsureFileDownloaded() 186 ResourceEntry* entry) { in CheckPreConditionForEnsureFileDownloadedByLocalId() 202 ResourceEntry* entry) { in CheckPreConditionForEnsureFileDownloadedByPath() 219 const ResourceEntry& entry_before_download, in UpdateLocalStateForDownloadFile() 222 ResourceEntry* entry_after_update, in UpdateLocalStateForDownloadFile() 238 ResourceEntry entry; in UpdateLocalStateForDownloadFile() 269 scoped_ptr<ResourceEntry> entry) in DownloadParams() 287 make_scoped_ptr(new ResourceEntry(*entry_))); in OnCacheFileFound() 300 make_scoped_ptr(new ResourceEntry(*entry_))); in OnStartDownloading() 305 error, base::FilePath(), scoped_ptr<ResourceEntry>()); in OnError() [all …]
|
D | get_file_for_saving_operation.cc | 31 ResourceEntry* entry) { in OpenCacheFileForWrite() 93 callback.Run(error, base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterCreate() 111 scoped_ptr<ResourceEntry> entry) { in GetFileForSavingAfterDownload() 116 callback.Run(error, base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterDownload() 121 ResourceEntry* entry_ptr = entry.get(); in GetFileForSavingAfterDownload() 144 scoped_ptr<ResourceEntry> entry, in GetFileForSavingAfterOpenForWrite() 151 callback.Run(error, base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterOpenForWrite() 172 scoped_ptr<ResourceEntry> entry, in GetFileForSavingAfterWatch() 183 base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterWatch()
|
D | copy_operation_unittest.cc | 46 ResourceEntry entry; in TEST_F() 80 ResourceEntry entry; in TEST_F() 117 ResourceEntry entry; in TEST_F() 151 ResourceEntry entry; in TEST_F() 165 EXPECT_EQ(ResourceEntry::DIRTY, entry.metadata_edit_state()); in TEST_F() 196 ResourceEntry entry; in TEST_F() 222 ResourceEntry entry; in TEST_F() 242 ResourceEntry entry; in TEST_F() 268 ResourceEntry entry; in TEST_F() 291 ResourceEntry src_entry; in TEST_F() [all …]
|
D | move_operation_unittest.cc | 32 ResourceEntry src_entry, dest_entry; in TEST_F() 46 EXPECT_EQ(ResourceEntry::DIRTY, dest_entry.metadata_edit_state()); in TEST_F() 61 ResourceEntry src_entry, dest_entry; in TEST_F() 75 EXPECT_EQ(ResourceEntry::DIRTY, dest_entry.metadata_edit_state()); in TEST_F() 97 ResourceEntry entry; in TEST_F() 113 ResourceEntry entry; in TEST_F() 132 ResourceEntry entry; in TEST_F()
|
D | create_file_operation.cc | 29 ResourceEntry* entry) { in UpdateLocalState() 40 ResourceEntry parent; in UpdateLocalState() 59 entry->set_metadata_edit_state(ResourceEntry::DIRTY); in UpdateLocalState() 93 ResourceEntry* entry = new ResourceEntry; in CreateFile() 114 ResourceEntry* entry, in CreateFileAfterUpdateLocalState()
|
D | get_file_for_saving_operation_unittest.cc | 75 ResourceEntry src_entry; in TEST_F() 80 scoped_ptr<ResourceEntry> entry; in TEST_F() 109 ResourceEntry src_entry; in TEST_F() 115 scoped_ptr<ResourceEntry> entry; in TEST_F() 133 ResourceEntry src_entry; in TEST_F() 139 scoped_ptr<ResourceEntry> entry; in TEST_F()
|
/external/chromium_org/chrome/browser/chromeos/drive/sync/ |
D | entry_revert_performer_unittest.cc | 36 ResourceEntry src_entry; in TEST_F() 40 ResourceEntry updated_entry = src_entry; in TEST_F() 42 updated_entry.set_metadata_edit_state(ResourceEntry::DIRTY); in TEST_F() 64 ResourceEntry result_entry; in TEST_F() 68 EXPECT_EQ(ResourceEntry::CLEAN, result_entry.metadata_edit_state()); in TEST_F() 75 ResourceEntry my_drive; in TEST_F() 80 ResourceEntry entry; in TEST_F() 117 ResourceEntry entry; in TEST_F()
|
D | entry_update_performer_unittest.cc | 68 ResourceEntry src_entry, dest_entry; in TEST_F() 84 src_entry.set_metadata_edit_state(ResourceEntry::DIRTY); in TEST_F() 136 scoped_ptr<ResourceEntry> src_entry; in TEST_F() 150 src_entry->set_metadata_edit_state(ResourceEntry::DIRTY); in TEST_F() 234 ResourceEntry entry; in TEST_F() 278 ResourceEntry entry; in TEST_F() 351 ResourceEntry entry; in TEST_F() 376 ResourceEntry parent; in TEST_F() 379 ResourceEntry entry; in TEST_F() 383 entry.set_metadata_edit_state(ResourceEntry::DIRTY); in TEST_F() [all …]
|
D | entry_update_performer.cc | 31 ResourceEntry entry; 32 ResourceEntry parent_entry; 104 case ResourceEntry::CLEAN: // Nothing to do. in PrepareUpdate() 105 case ResourceEntry::SYNCING: // Error during the last update. Go ahead. in PrepareUpdate() 108 case ResourceEntry::DIRTY: in PrepareUpdate() 109 local_state->entry.set_metadata_edit_state(ResourceEntry::SYNCING); in PrepareUpdate() 147 ResourceEntry entry; in FinishUpdate() 154 case ResourceEntry::CLEAN: // Nothing to do. in FinishUpdate() 155 case ResourceEntry::DIRTY: // Entry was edited again during the update. in FinishUpdate() 158 case ResourceEntry::SYNCING: in FinishUpdate() [all …]
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend_v1/ |
D | api_util.h | 45 scoped_ptr<google_apis::ResourceEntry> entry)> 146 scoped_ptr<google_apis::ResourceEntry> entry); 184 scoped_ptr<google_apis::ResourceEntry> entry); 186 void DidDownloadFile(scoped_ptr<google_apis::ResourceEntry> entry, 196 scoped_ptr<google_apis::ResourceEntry> entry); 203 scoped_ptr<google_apis::ResourceEntry> entry); 209 scoped_ptr<google_apis::ResourceEntry> entry); 213 scoped_ptr<google_apis::ResourceEntry> entry); 218 scoped_ptr<google_apis::ResourceEntry> entry); 233 ScopedVector<google_apis::ResourceEntry> entries, [all …]
|