Searched defs:entry (Results 76 - 100 of 1572) sorted by path

1234567891011>>

/external/chromium_org/chrome/browser/chromeos/drive/file_system/
H A Dmove_operation.cc20 // Looks up ResourceEntry for source entry and the destination directory.
26 ResourceEntry entry; local
27 FileError error = metadata->GetResourceEntryByPath(src_path, &entry);
30 *local_id = entry.local_id();
41 changed_files->Update(src_path, entry, FileChange::DELETE);
47 entry.has_file_specific_info() &&
48 entry.file_specific_info().is_hosted_document() &&
49 new_extension == entry.file_specific_info().document_extension();
55 entry.set_title(new_title);
56 entry
[all...]
H A Dmove_operation_unittest.cc100 ResourceEntry entry; local
101 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(src_path, &entry));
102 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(dest_path, &entry));
116 ResourceEntry entry; local
117 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &entry));
118 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(dest_path, &entry));
135 ResourceEntry entry; local
136 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &entry));
137 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(dest_path, &entry));
H A Dopen_file_operation.cc108 scoped_ptr<ResourceEntry> entry) {
113 DCHECK(entry);
114 DCHECK(entry->has_file_specific_info());
115 if (entry->file_specific_info().is_hosted_document())
132 entry->local_id(),
137 entry->local_id(),
104 OpenFileAfterFileDownloaded( const OpenFileCallback& callback, FileError error, const base::FilePath& local_file_path, scoped_ptr<ResourceEntry> entry) argument
H A Doperation_test_base.cc145 ResourceEntry* entry) {
151 base::Unretained(metadata()), path, entry),
159 ResourceEntry* entry) {
165 base::Unretained(metadata()), local_id, entry),
144 GetLocalResourceEntry(const base::FilePath& path, ResourceEntry* entry) argument
157 GetLocalResourceEntryById( const std::string& local_id, ResourceEntry* entry) argument
H A Dremove_operation.cc23 // Removes cache file and moves the metadata entry to the trash.
29 ResourceEntry* entry,
35 error = metadata->GetResourceEntryById(*local_id, entry);
39 if (entry->file_info().is_directory() && !is_recursive) {
56 entry->set_parent_local_id(util::kDriveTrashDirLocalId);
57 return metadata->RefreshEntry(*entry);
87 ResourceEntry* entry = new ResourceEntry; local
97 entry,
103 base::Owned(entry),
110 const ResourceEntry* entry,
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
[all...]
H A Dremove_operation_unittest.cc30 ResourceEntry entry; local
32 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(file_in_root, &entry));
38 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(file_in_root, &entry));
40 const std::string id_file_in_root = entry.local_id();
41 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntryById(id_file_in_root, &entry));
42 EXPECT_EQ(util::kDriveTrashDirLocalId, entry.parent_local_id());
46 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(file_in_subdir, &entry));
47 const std::string resource_id = entry.resource_id();
55 GetLocalResourceEntry(file_in_subdir, &entry));
57 const std::string id_file_in_subdir = entry
95 ResourceEntry entry; local
[all...]
H A Dsearch_operation.cc48 ResourceEntry entry; local
50 error = resource_metadata->GetResourceEntryById(local_id, &entry);
54 if (!ConvertFileResourceToResourceEntry(*entries[i], &entry,
66 entry.set_parent_local_id(util::kDriveOtherDirLocalId);
67 error = resource_metadata->AddEntry(entry, &local_id);
75 result->push_back(SearchResultInfo(path, entry.file_info().is_directory()));
139 // Short cut. If the resource entry is empty, we don't need to refresh
H A Dtouch_operation.cc24 // Updates the timestamps of the entry specified by |file_path|.
29 ResourceEntry* entry,
31 FileError error = metadata->GetResourceEntryByPath(file_path, entry);
34 *local_id = entry->local_id();
36 PlatformFileInfoProto* file_info = entry->mutable_file_info();
41 entry->set_metadata_edit_state(ResourceEntry::DIRTY);
42 entry->set_modification_date(base::Time::Now().ToInternalValue());
43 return metadata->RefreshEntry(*entry);
68 ResourceEntry* entry = new ResourceEntry; local
77 entry,
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
[all...]
H A Dtouch_operation_unittest.cc44 ResourceEntry entry; local
45 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kTestPath, &entry));
47 base::Time::FromInternalValue(entry.file_info().last_accessed()));
49 base::Time::FromInternalValue(entry.file_info().last_modified()));
50 EXPECT_EQ(ResourceEntry::DIRTY, entry.metadata_edit_state());
56 EXPECT_TRUE(delegate()->updated_local_ids().count(entry.local_id()));
H A Dtruncate_operation.cc109 scoped_ptr<ResourceEntry> entry) {
117 DCHECK(entry);
118 DCHECK(entry->has_file_specific_info());
120 if (entry->file_specific_info().is_hosted_document()) {
129 metadata_, cache_, entry->local_id(), local_file_path, length),
132 weak_ptr_factory_.GetWeakPtr(), entry->local_id(), callback));
104 TruncateAfterEnsureFileDownloadedByPath( int64 length, const FileOperationCallback& callback, FileError error, const base::FilePath& local_file_path, scoped_ptr<ResourceEntry> entry) argument
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dfile_system_unittest.cc43 FileError error, scoped_ptr<ResourceEntry> entry) {
44 if (error != FILE_ERROR_OK || !entry) {
158 // Gets resource entry by path synchronously.
162 scoped_ptr<ResourceEntry> entry; local
165 google_apis::test_util::CreateCopyResultCallback(&error, &entry));
168 return entry.Pass();
194 // Returns true if an entry exists at |file_path|.
336 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(dest_file_path); local
337 ASSERT_TRUE(entry);
342 entry
41 AsyncInitializationCallback( int* counter, int expected_counter, const base::Closure& quit, FileError error, scoped_ptr<ResourceEntry> entry) argument
369 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(dest_file_path); local
388 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(file_path); local
425 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(directory_path); local
454 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(file_path); local
471 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(file_path); local
505 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(file_path); local
549 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
556 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
563 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
578 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
590 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
598 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
606 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
617 scoped_ptr<ResourceEntry> entry = GetResourceEntrySync(kFilePath); local
808 scoped_ptr<google_apis::FileResource> entry; local
924 scoped_ptr<ResourceEntry> entry; local
[all...]
H A Dfile_task_executor.cc115 scoped_ptr<ResourceEntry> entry) {
117 if (entry.get() && !entry->has_file_specific_info())
127 // current document entry for this document so we can get the
128 // open-with-<app_id> urls from the document entry.
129 drive_service->AuthorizeApp(entry->resource_id(),
133 entry->resource_id()));
114 OnFileEntryFetched(FileError error, scoped_ptr<ResourceEntry> entry) argument
H A Djob_scheduler.cc230 // CancelJob may remove the entry from |job_map_|. That's OK. IDMap supports
763 JobEntry* entry = job_map_.Lookup(job_id);
764 DCHECK(entry);
766 JobInfo* job_info = &entry->job_info;
771 entry->cancel_callback = entry->task.Run();
906 scoped_ptr<google_apis::FileResource> entry) {
911 callback.Run(error, entry.Pass());
979 scoped_ptr<google_apis::FileResource> entry) {
1007 callback.Run(error, entry
902 OnGetFileResourceJobDone( JobID job_id, const google_apis::FileResourceCallback& callback, google_apis::GDataErrorCode error, scoped_ptr<google_apis::FileResource> entry) argument
973 OnUploadCompletionJobDone( JobID job_id, const ResumeUploadParams& resume_params, const google_apis::FileResourceCallback& callback, google_apis::GDataErrorCode error, const GURL& upload_location, scoped_ptr<google_apis::FileResource> entry) argument
1010 OnResumeUploadFileDone( JobID job_id, const base::Callback<google_apis::CancelCallback()>& original_task, const google_apis::FileResourceCallback& callback, google_apis::GDataErrorCode error, const GURL& upload_location, scoped_ptr<google_apis::FileResource> entry) argument
[all...]
H A Djob_scheduler_unittest.cc273 scoped_ptr<google_apis::FileResource> entry; local
279 &error, &entry));
359 scoped_ptr<google_apis::FileResource> entry; local
364 google_apis::test_util::CreateCopyResultCallback(&error, &entry));
368 ASSERT_TRUE(entry);
406 scoped_ptr<google_apis::FileResource> entry; local
413 google_apis::test_util::CreateCopyResultCallback(&error, &entry));
417 ASSERT_TRUE(entry);
424 scoped_ptr<google_apis::FileResource> entry; local
433 google_apis::test_util::CreateCopyResultCallback(&error, &entry));
473 scoped_ptr<google_apis::FileResource> entry; local
548 scoped_ptr<google_apis::FileResource> entry; local
564 scoped_ptr<google_apis::FileResource> entry; local
790 scoped_ptr<google_apis::FileResource> entry; local
937 scoped_ptr<google_apis::FileResource> entry; local
971 scoped_ptr<google_apis::FileResource> entry; local
1021 scoped_ptr<google_apis::FileResource> entry; local
[all...]
H A Dremove_stale_cache_files.cc19 const ResourceEntry& entry = it->GetValue(); local
21 entry.file_specific_info().cache_state();
24 cache_state.md5() != entry.file_specific_info().md5()) {
H A Dremove_stale_cache_files_unittest.cc65 ResourceEntry entry; local
67 entry.mutable_file_specific_info()->set_md5(md5_metadata);
68 entry.set_parent_local_id(util::kDriveGrandRootLocalId);
69 entry.set_title("File.txt");
70 EXPECT_EQ(FILE_ERROR_OK, resource_metadata_->AddEntry(entry, &local_id));
81 resource_metadata_->GetResourceEntryById(local_id, &entry));
82 EXPECT_FALSE(entry.file_specific_info().cache_state().is_present());
89 // Dirty entry.
92 ResourceEntry entry; local
94 entry
[all...]
H A Dresource_entry_conversion.cc60 // used for the entry. Tracked in http://crbug.com/158904.
128 void ConvertResourceEntryToFileInfo(const ResourceEntry& entry, argument
130 file_info->size = entry.file_info().size();
131 file_info->is_directory = entry.file_info().is_directory();
132 file_info->is_symbolic_link = entry.file_info().is_symbolic_link();
134 entry.file_info().last_modified());
136 entry.file_info().last_accessed());
138 entry.file_info().creation_time());
H A Dresource_entry_conversion_unittest.cc45 ResourceEntry entry; local
48 file_resource, &entry, &parent_resource_id));
50 EXPECT_EQ(file_resource.title(), entry.title());
51 EXPECT_EQ(file_resource.title(), entry.base_name());
52 EXPECT_EQ(file_resource.file_id(), entry.resource_id());
55 EXPECT_FALSE(entry.deleted());
56 EXPECT_FALSE(entry.shared_with_me());
57 EXPECT_FALSE(entry.shared());
60 entry.file_info().last_modified());
62 EXPECT_EQ(0, entry
92 ResourceEntry entry; local
142 ResourceEntry entry; local
182 ResourceEntry entry; local
225 ResourceEntry entry; local
255 ResourceEntry entry; local
278 ResourceEntry entry; local
298 ResourceEntry entry; local
307 ResourceEntry entry; local
343 ResourceEntry entry; local
352 ResourceEntry entry; local
364 ResourceEntry entry; local
[all...]
H A Dresource_metadata.cc40 // Returns true when there is no entry with the specified name under the parent
41 // other than the specified entry.
59 // Returns true when the ID is used by an immutable entry.
125 ResourceEntry entry; local
126 FileError error = storage_->GetEntry(util::kDriveGrandRootLocalId, &entry);
137 if (!entry.resource_id().empty()) {
139 entry.clear_resource_id();
140 error = storage_->PutEntry(entry);
149 error = storage_->GetEntry(util::kDriveOtherDirLocalId, &entry);
160 if (!entry
225 AddEntry(const ResourceEntry& entry, std::string* out_id) argument
329 ResourceEntry entry; local
352 RefreshEntry(const ResourceEntry& entry) argument
418 ResourceEntry entry; local
451 ResourceEntry entry; local
500 PutEntryUnderDirectory(const ResourceEntry& entry) argument
514 GetDeduplicatedBaseName( const ResourceEntry& entry, std::string* base_name) argument
582 ResourceEntry entry; local
[all...]
H A Dresource_metadata_storage.cc69 // String used as a suffix of a key for a cache entry.
72 // String used as a prefix of a key for a resource-ID-to-local-ID entry.
83 // Returns true if |key| is a key for a child entry.
88 // Returns true if |key| is a key for a cache entry.
90 // A cache entry key should end with |kDBKeyDelimeter + kCacheEntryKeySuffix|.
102 // Returns ID extracted from a cache entry key.
111 // Returns a string to be used as a key for a resource-ID-to-local-ID entry.
121 // Returns true if |key| is a key for a resource-ID-to-local-ID entry.
123 // A resource-ID-to-local-ID entry key should start with
135 // Returns the resource ID extracted from a resource-ID-to-local-ID entry ke
338 ResourceEntry entry; local
470 ResourceEntry entry; local
675 ResourceEntry entry; local
714 PutEntry(const ResourceEntry& entry) argument
786 ResourceEntry entry; local
961 ResourceEntry entry; local
[all...]
H A Dresource_metadata_storage_unittest.cc46 // Puts a child entry.
56 // Removes a child entry.
154 ResourceEntry entry; local
155 entry.set_local_id(keys[i]);
156 EXPECT_EQ(FILE_ERROR_OK, storage_->PutEntry(entry));
164 const ResourceEntry& entry = it->GetValue(); local
165 found_entries[it->GetID()] = entry;
183 // Put an entry with the resource ID.
184 ResourceEntry entry; local
185 entry
220 ResourceEntry entry; local
228 ResourceEntry entry; local
296 ResourceEntry entry; local
345 ResourceEntry entry; local
399 ResourceEntry entry; local
455 ResourceEntry entry; local
479 ResourceEntry entry; local
521 ResourceEntry entry; local
570 ResourceEntry entry; local
[all...]
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/
H A Dfile_system_backend_delegate.cc29 // the browser URL from |entry|. |callback| will be called on the IO thread.
33 scoped_ptr<ResourceEntry> entry) {
36 if (error == FILE_ERROR_OK && entry->has_file_specific_info() &&
37 entry->file_specific_info().is_hosted_document()) {
38 url = GURL(entry->file_specific_info().alternate_url());
30 GetRedirectURLForContentsOnUIThreadWithResourceEntry( const storage::URLCallback& callback, FileError error, scoped_ptr<ResourceEntry> entry) argument
H A Dfileapi_worker.cc53 // Runs |callback| with arguments converted from |error| and |entry|.
56 scoped_ptr<ResourceEntry> entry) {
62 DCHECK(entry);
64 ConvertResourceEntryToFileInfo(*entry, &file_info);
75 // Convert drive files to File API's directory entry.
79 storage::DirectoryEntry entry; local
80 entry.name = resource_entry.base_name();
83 entry.is_directory = file_info.is_directory();
84 entry.size = file_info.size();
85 entry
54 RunGetFileInfoCallback(const GetFileInfoCallback& callback, FileError error, scoped_ptr<ResourceEntry> entry) argument
102 RunCreateSnapshotFileCallback(const CreateSnapshotFileCallback& callback, FileError error, const base::FilePath& local_path, scoped_ptr<ResourceEntry> entry) argument
[all...]
H A Dwebkit_file_stream_reader_impl.cc96 scoped_ptr<ResourceEntry> entry) {
111 file_size_ = entry->file_info().size();
93 OnStreamReaderInitialized( const net::CompletionCallback& callback, int error, scoped_ptr<ResourceEntry> entry) argument
H A Dwebkit_file_stream_reader_impl_unittest.cc176 scoped_ptr<ResourceEntry> entry; local
179 google_apis::test_util::CreateCopyResultCallback(&error, &entry));
182 ASSERT_TRUE(entry);
187 entry->resource_id(),

Completed in 3908 milliseconds

1234567891011>>