Home
last modified time | relevance | path

Searched refs:ResourceEntry (Results 1 – 25 of 158) sorted by relevance

1234567

/external/chromium_org/google_apis/drive/
Dgdata_wapi_parser_unittest.cc63 const ResourceEntry* folder_entry = feed->entries()[0]; in TEST()
105 const ResourceEntry* file_entry = feed->entries()[1]; in TEST()
134 const ResourceEntry* resource_entry = feed->entries()[2]; in TEST()
142 const ResourceEntry* app_entry = feed->entries()[3]; in TEST()
158 scoped_ptr<ResourceEntry> entry(ResourceEntry::ExtractAndParse(*document)); in TEST()
309 ResourceEntry::KIND_OF_GOOGLE_DOCUMENT | in TEST()
310 ResourceEntry::KIND_OF_HOSTED_DOCUMENT, in TEST()
311 ResourceEntry::ClassifyEntryKindByFileExtension( in TEST()
314 ResourceEntry::KIND_OF_GOOGLE_DOCUMENT | in TEST()
315 ResourceEntry::KIND_OF_HOSTED_DOCUMENT, in TEST()
[all …]
Dgdata_wapi_parser.cc450 ResourceEntry::ResourceEntry() in ResourceEntry() function in google_apis::ResourceEntry
461 ResourceEntry::~ResourceEntry() { in ~ResourceEntry()
464 bool ResourceEntry::HasFieldPresent(const base::Value* value, in HasFieldPresent()
470 bool ResourceEntry::ParseChangestamp(const base::Value* value, in ParseChangestamp()
487 void ResourceEntry::RegisterJSONConverter( in RegisterJSONConverter()
488 base::JSONValueConverter<ResourceEntry>* converter) { in RegisterJSONConverter()
492 kResourceIdField, &ResourceEntry::resource_id_); in RegisterJSONConverter()
493 converter->RegisterStringField(kIDField, &ResourceEntry::id_); in RegisterJSONConverter()
494 converter->RegisterStringField(kTitleTField, &ResourceEntry::title_); in RegisterJSONConverter()
496 kPublishedField, &ResourceEntry::published_time_, in RegisterJSONConverter()
[all …]
Dgdata_wapi_parser.h97 friend class ResourceEntry;
143 friend class ResourceEntry;
174 friend class ResourceEntry;
213 friend class ResourceEntry;
248 friend class ResourceEntry;
367 class ResourceEntry : public CommonMetadata {
369 ResourceEntry();
370 virtual ~ResourceEntry();
383 static scoped_ptr<ResourceEntry> ExtractAndParse(const base::Value& value);
389 static scoped_ptr<ResourceEntry> CreateFrom(const base::Value& value);
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/sync/
Dentry_update_performer.cc24 ResourceEntry* entry, in PrepareUpdate()
25 ResourceEntry* parent_entry) { in PrepareUpdate()
36 case ResourceEntry::CLEAN: // Nothing to do. in PrepareUpdate()
37 case ResourceEntry::SYNCING: // Error during the last update. Go ahead. in PrepareUpdate()
40 case ResourceEntry::DIRTY: in PrepareUpdate()
41 entry->set_metadata_edit_state(ResourceEntry::SYNCING); in PrepareUpdate()
52 ResourceEntry entry; in FinishUpdate()
58 case ResourceEntry::CLEAN: // Nothing to do. in FinishUpdate()
59 case ResourceEntry::DIRTY: // Entry was edited again during the update. in FinishUpdate()
62 case ResourceEntry::SYNCING: in FinishUpdate()
[all …]
Dentry_revert_performer_unittest.cc35 ResourceEntry src_entry; in TEST_F()
39 ResourceEntry updated_entry = src_entry; in TEST_F()
41 updated_entry.set_metadata_edit_state(ResourceEntry::DIRTY); in TEST_F()
62 ResourceEntry result_entry; in TEST_F()
66 EXPECT_EQ(ResourceEntry::CLEAN, result_entry.metadata_edit_state()); in TEST_F()
73 ResourceEntry my_drive; in TEST_F()
78 ResourceEntry entry; in TEST_F()
114 ResourceEntry entry; in TEST_F()
Dentry_update_performer.h20 class ResourceEntry; variable
26 class ResourceEntry; variable
57 scoped_ptr<ResourceEntry> entry,
58 scoped_ptr<ResourceEntry> parent_entry,
66 scoped_ptr<google_apis::ResourceEntry> resource_entry);
Dentry_revert_performer.cc23 scoped_ptr<google_apis::ResourceEntry> resource_entry, in FinishRevert()
25 ResourceEntry entry; in FinishRevert()
92 scoped_ptr<ResourceEntry> entry(new ResourceEntry); in RevertEntry()
93 ResourceEntry* entry_ptr = entry.get(); in RevertEntry()
106 scoped_ptr<ResourceEntry> entry, in RevertEntryAfterPrepare()
127 scoped_ptr<google_apis::ResourceEntry> resource_entry) { in RevertEntryAfterGetResourceEntry()
Dentry_revert_performer.h22 class ResourceEntry; variable
28 class ResourceEntry; variable
57 scoped_ptr<ResourceEntry> entry,
65 scoped_ptr<google_apis::ResourceEntry> resource_entry);
/external/chromium_org/chrome/browser/chromeos/drive/
Dresource_entry_conversion.h15 class ResourceEntry; variable
20 class ResourceEntry; variable
36 bool ConvertToResourceEntry(const google_apis::ResourceEntry& input,
37 ResourceEntry* out_entry,
41 void ConvertResourceEntryToPlatformFileInfo(const ResourceEntry& entry,
47 ResourceEntry* entry);
Dresource_metadata.cc22 void SetBaseNameFromTitle(ResourceEntry* entry) { in SetBaseNameFromTitle()
41 scoped_ptr<ResourceEntry> entry, in RunGetResourceEntryCallback()
118 ResourceEntry entry; in SetUpDefaultEntries()
120 ResourceEntry root; in SetUpDefaultEntries()
131 ResourceEntry other_dir; in SetUpDefaultEntries()
142 ResourceEntry trash_dir; in SetUpDefaultEntries()
173 FileError ResourceMetadata::AddEntry(const ResourceEntry& entry, in AddEntry()
181 ResourceEntry parent; in AddEntry()
188 ResourceEntry existing_entry; in AddEntry()
198 ResourceEntry new_entry(entry); in AddEntry()
[all …]
Dresource_metadata.h25 typedef std::vector<ResourceEntry> ResourceEntryVector;
30 scoped_ptr<ResourceEntry> entry)>
37 typedef base::Callback<void(const ResourceEntry& entry)> IterateCallback;
70 FileError AddEntry(const ResourceEntry& entry, std::string* out_id);
77 ResourceEntry* out_entry);
88 ResourceEntry* out_entry);
101 FileError RefreshEntry(const ResourceEntry& entry);
140 bool PutEntryUnderDirectory(const ResourceEntry& entry);
Dresource_entry_conversion_unittest.cc23 scoped_ptr<google_apis::ResourceEntry> gdata_resource_entry( in TEST()
24 google_apis::ResourceEntry::ExtractAndParse(*value)); in TEST()
27 ResourceEntry entry; in TEST()
99 scoped_ptr<google_apis::ResourceEntry> gdata_resource_entry( in TEST()
100 google_apis::ResourceEntry::ExtractAndParse(*value)); in TEST()
103 ResourceEntry entry; in TEST()
180 scoped_ptr<google_apis::ResourceEntry> gdata_resource_entry( in TEST()
181 google_apis::ResourceEntry::ExtractAndParse(*value)); in TEST()
184 ResourceEntry entry; in TEST()
254 scoped_ptr<google_apis::ResourceEntry> gdata_resource_entry( in TEST()
[all …]
Dchange_list_processor.h25 class ResourceEntry; variable
67 const std::vector<ResourceEntry>& entries() const { return entries_; } in entries()
68 std::vector<ResourceEntry>* mutable_entries() { return &entries_; } in mutable_entries()
79 std::vector<ResourceEntry> entries_;
117 typedef std::map<std::string /* resource_id */, ResourceEntry>
129 FileError ApplyEntry(const ResourceEntry& entry);
132 void UpdateChangedDirs(const ResourceEntry& entry);
Dfake_file_system.cc234 scoped_ptr<ResourceEntry> entry) { in GetFileContentAfterGetResourceEntry()
265 scoped_ptr<google_apis::ResourceEntry> gdata_entry) { in GetFileContentAfterGetWapiResourceEntry()
275 scoped_ptr<ResourceEntry> entry(new ResourceEntry); in GetFileContentAfterGetWapiResourceEntry()
321 callback.Run(error, scoped_ptr<ResourceEntry>()); in GetResourceEntryAfterGetAboutResource()
326 scoped_ptr<ResourceEntry> root(new ResourceEntry); in GetResourceEntryAfterGetAboutResource()
337 scoped_ptr<ResourceEntry> parent_entry) { in GetResourceEntryAfterGetParentEntryInfo()
341 callback.Run(error, scoped_ptr<ResourceEntry>()); in GetResourceEntryAfterGetParentEntryInfo()
362 callback.Run(error, scoped_ptr<ResourceEntry>()); in GetResourceEntryAfterGetResourceList()
367 const ScopedVector<google_apis::ResourceEntry>& entries = in GetResourceEntryAfterGetResourceList()
370 scoped_ptr<ResourceEntry> entry(new ResourceEntry); in GetResourceEntryAfterGetResourceList()
[all …]
Dfile_system_unittest.cc40 FileError error, scoped_ptr<ResourceEntry> entry) { in AsyncInitializationCallback()
149 scoped_ptr<ResourceEntry> GetResourceEntrySync( in GetResourceEntrySync()
152 scoped_ptr<ResourceEntry> entry; in GetResourceEntrySync()
221 ResourceEntry file1; in SetUpTestFileSystem()
231 ResourceEntry dir1; in SetUpTestFileSystem()
240 ResourceEntry file2; in SetUpTestFileSystem()
250 ResourceEntry dir2; in SetUpTestFileSystem()
259 ResourceEntry file3; in SetUpTestFileSystem()
315 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); in TEST_F()
326 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync_file_system/drive_backend_v1/
Dfake_drive_service_helper.cc25 using google_apis::ResourceEntry;
34 scoped_ptr<ResourceEntry>* entry_out, in UploadResultCallback()
37 scoped_ptr<ResourceEntry> entry) { in UploadResultCallback()
92 scoped_ptr<ResourceEntry> folder; in AddFolder()
112 scoped_ptr<ResourceEntry> file; in AddFile()
130 scoped_ptr<ResourceEntry> file; in UpdateFile()
173 const ScopedVector<ResourceEntry>& entries = resource_list->entries(); in GetSyncRootFolderID()
174 for (ScopedVector<ResourceEntry>::const_iterator itr = entries.begin(); in GetSyncRootFolderID()
176 const ResourceEntry& entry = **itr; in GetSyncRootFolderID()
187 ScopedVector<ResourceEntry>* entries) { in ListFilesInFolder()
[all …]
Dapi_util.h44 scoped_ptr<google_apis::ResourceEntry> entry)>
139 scoped_ptr<google_apis::ResourceEntry> entry);
145 scoped_ptr<google_apis::ResourceEntry> entry);
166 scoped_ptr<google_apis::ResourceEntry> entry);
179 scoped_ptr<google_apis::ResourceEntry> entry);
181 void DidDownloadFile(scoped_ptr<google_apis::ResourceEntry> entry,
191 scoped_ptr<google_apis::ResourceEntry> entry);
198 scoped_ptr<google_apis::ResourceEntry> entry);
204 scoped_ptr<google_apis::ResourceEntry> entry);
208 scoped_ptr<google_apis::ResourceEntry> entry);
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dmove_operation_unittest.cc42 ResourceEntry src_entry, dest_entry; in TEST_F()
57 EXPECT_EQ(ResourceEntry::DIRTY, dest_entry.metadata_edit_state()); in TEST_F()
72 ResourceEntry src_entry, dest_entry; in TEST_F()
87 EXPECT_EQ(ResourceEntry::DIRTY, dest_entry.metadata_edit_state()); in TEST_F()
105 ResourceEntry src_entry, dest_entry; in TEST_F()
122 ResourceEntry copied_entry; in TEST_F()
137 EXPECT_EQ(ResourceEntry::DIRTY, dest_entry.metadata_edit_state()); in TEST_F()
161 ResourceEntry entry; in TEST_F()
178 ResourceEntry entry; in TEST_F()
198 ResourceEntry entry; in TEST_F()
[all …]
Ddownload_operation_unittest.cc37 ResourceEntry src_entry; in TEST_F()
47 scoped_ptr<ResourceEntry> entry; in TEST_F()
84 scoped_ptr<ResourceEntry> entry; in TEST_F()
100 ResourceEntry src_entry; in TEST_F()
134 scoped_ptr<ResourceEntry> entry; in TEST_F()
171 ResourceEntry src_entry; in TEST_F()
186 scoped_ptr<ResourceEntry> entry; in TEST_F()
204 ResourceEntry src_entry; in TEST_F()
223 scoped_ptr<ResourceEntry> entry; in TEST_F()
244 scoped_ptr<ResourceEntry> entry; in TEST_F()
[all …]
Dcreate_directory_operation.h21 class ResourceEntry; variable
27 class ResourceEntry; variable
68 ResourceEntry* entry);
77 ResourceEntry* existing_deepest_directory_entry,
96 scoped_ptr<google_apis::ResourceEntry> resource_entry);
Dget_file_for_saving_operation.cc74 callback.Run(error, base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterCreate()
92 scoped_ptr<ResourceEntry> entry) { in GetFileForSavingAfterDownload()
97 callback.Run(error, base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterDownload()
118 scoped_ptr<ResourceEntry> entry, in GetFileForSavingAfterMarkDirty()
124 callback.Run(error, base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterMarkDirty()
144 scoped_ptr<ResourceEntry> entry, in GetFileForSavingAfterWatch()
151 base::FilePath(), scoped_ptr<ResourceEntry>()); in GetFileForSavingAfterWatch()
Dget_file_for_saving_operation_unittest.cc76 ResourceEntry src_entry; in TEST_F()
81 scoped_ptr<ResourceEntry> entry; in TEST_F()
122 ResourceEntry src_entry; in TEST_F()
128 scoped_ptr<ResourceEntry> entry; in TEST_F()
146 ResourceEntry src_entry; in TEST_F()
152 scoped_ptr<ResourceEntry> entry; in TEST_F()
Ddownload_operation.cc42 ResourceEntry* entry, in CheckPreConditionForEnsureFileDownloaded()
117 ResourceEntry* entry) { in CheckPreConditionForEnsureFileDownloadedByLocalId()
132 ResourceEntry* entry) { in CheckPreConditionForEnsureFileDownloadedByPath()
218 scoped_ptr<ResourceEntry> entry) in DownloadParams()
233 FILE_ERROR_OK, make_scoped_ptr(new ResourceEntry(*entry_)), in OnCacheFileFound()
244 FILE_ERROR_OK, make_scoped_ptr(new ResourceEntry(*entry_)), in OnStartDownloading()
250 error, base::FilePath(), scoped_ptr<ResourceEntry>()); in OnError()
261 const ResourceEntry& entry() const { return *entry_; } in entry()
268 scoped_ptr<ResourceEntry> entry_;
303 ResourceEntry* entry = new ResourceEntry; in EnsureFileDownloadedByLocalId()
[all …]
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
Dsync_engine_initializer.cc27 bool IsDeleted(const google_apis::ResourceEntry& entry) { in IsDeleted()
31 bool HasNoParents(const google_apis::ResourceEntry& entry) { in HasNoParents()
35 bool HasFolderAsParent(const google_apis::ResourceEntry& entry, in HasFolderAsParent()
49 bool LessOnCreationTime(const google_apis::ResourceEntry& left, in LessOnCreationTime()
50 const google_apis::ResourceEntry& right) { in LessOnCreationTime()
69 std::string GetID(const google_apis::ResourceEntry& entry) { in GetID()
74 const ScopedVector<google_apis::ResourceEntry>& entries) { in ConvertResourceEntriesToFileResources()
76 for (ScopedVector<google_apis::ResourceEntry>::const_iterator itr = in ConvertResourceEntriesToFileResources()
204 ScopedVector<google_apis::ResourceEntry>* entries = in DidFindSyncRoot()
206 for (ScopedVector<google_apis::ResourceEntry>::iterator itr = in DidFindSyncRoot()
[all …]
/external/chromium_org/chrome/browser/drive/
Dfake_drive_service.cc57 using google_apis::ResourceEntry;
79 bool EntryMatchWithQuery(const ResourceEntry& entry, in EntryMatchWithQuery()
113 scoped_ptr<ResourceEntry> entry) { in ScheduleUploadRangeCallback()
125 GDataErrorCode error, scoped_ptr<ResourceEntry> resource_entry) { in EntryActionCallbackAdapter()
454 scoped_ptr<ResourceEntry> null; in GetResourceEntry()
465 scoped_ptr<ResourceEntry> resource_entry = in GetResourceEntry()
466 ResourceEntry::CreateFrom(*entry); in GetResourceEntry()
473 scoped_ptr<ResourceEntry> null; in GetResourceEntry()
488 scoped_ptr<ResourceEntry> null; in GetShareUrl()
501 scoped_ptr<ResourceEntry> resource_entry = in GetShareUrl()
[all …]

1234567