/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
H A D | operation_test_base.cc | 145 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 D | remove_operation.cc | 23 // 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 D | search_operation.cc | 48 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 D | truncate_operation.cc | 109 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 D | file_task_executor.cc | 115 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
|
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/ |
H A D | file_system_backend_delegate.cc | 29 // 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 D | webkit_file_stream_reader_impl.cc | 96 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 D | webkit_file_stream_reader_impl_unittest.cc | 176 scoped_ptr<ResourceEntry> entry; local 179 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); 182 ASSERT_TRUE(entry); 187 entry->resource_id(),
|
/external/chromium_org/chrome/browser/chromeos/drive/sync/ |
H A D | entry_revert_performer.cc | 29 ResourceEntry entry; local 34 if (!ConvertFileResourceToResourceEntry(*file_resource, &entry, 40 entry.set_deleted(true); 52 if (entry.deleted()) { 62 changed_files->Update(original_path, entry, FileChange::DELETE); 64 error = ChangeListProcessor::SetParentLocalIdOfEntry(metadata, &entry, 69 entry.set_local_id(local_id); 70 error = metadata->RefreshEntry(entry); 79 changed_files->Update(new_path, entry, FileChange::ADD_OR_UPDATE); 109 scoped_ptr<ResourceEntry> entry(ne 121 RevertEntryAfterPrepare( const ClientContext& context, const FileOperationCallback& callback, scoped_ptr<ResourceEntry> entry, FileError error) 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 D | entry_update_performer_unittest.cc | 73 // Update local entry. 149 // Update the entry locally. 235 ResourceEntry entry; local 236 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kFilePath, &entry)); 237 EXPECT_FALSE(entry.file_specific_info().cache_state().is_dirty()); 279 ResourceEntry entry; local 280 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kFilePath, &entry)); 281 EXPECT_FALSE(entry.file_specific_info().cache_state().is_dirty()); 314 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kFilePath, &entry)); 315 EXPECT_FALSE(entry 352 ResourceEntry entry; local 380 ResourceEntry entry; local 435 ResourceEntry entry; local 509 ResourceEntry entry; local [all...] |
H A D | remove_performer.cc | 29 ResourceEntry entry; local 30 FileError error = metadata->GetResourceEntryById(local_id, &entry); 33 entry.set_parent_local_id(util::kDriveOtherDirLocalId); 34 return metadata->RefreshEntry(entry); 73 // Returns |entry| corresponding to |local_id|. 74 // Adding to that, removes the entry when it does not exist on the server. 77 ResourceEntry* entry) { 78 FileError error = metadata->GetResourceEntryById(local_id, entry); 79 if (error != FILE_ERROR_OK || !entry->resource_id().empty()) 90 ResourceEntry* entry local 75 TryToRemoveLocally(ResourceMetadata* metadata, const std::string& local_id, ResourceEntry* entry) argument 102 RemoveAfterGetResourceEntry( const ClientContext& context, const FileOperationCallback& callback, const ResourceEntry* entry, FileError error) argument 208 ResourceEntry entry; local [all...] |
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/ |
H A D | private_api_mount.cc | 123 scoped_ptr<drive::ResourceEntry> entry) { 119 RunAfterGetDriveFile( const base::FilePath& drive_path, drive::FileError error, const base::FilePath& cache_path, scoped_ptr<drive::ResourceEntry> entry) argument
|
/external/chromium_org/chrome/browser/chromeos/file_manager/ |
H A D | filesystem_api_util.cc | 31 // the mime type from the passed Drive resource entry. 35 scoped_ptr<drive::ResourceEntry> entry) { 38 if (error != drive::FILE_ERROR_OK || !entry->has_file_specific_info() || 39 entry->file_specific_info().content_mime_type().empty()) { 43 callback.Run(true, entry->file_specific_info().content_mime_type()); 32 GetMimeTypeAfterGetResourceEntryForDrive( const base::Callback<void(bool, const std::string&)>& callback, drive::FileError error, scoped_ptr<drive::ResourceEntry> entry) argument
|
/external/chromium_org/chrome/browser/chromeos/login/screens/ |
H A D | chrome_user_selection_screen.cc | 107 const policy::PolicyMap::Entry* entry = local 113 if (entry && 114 entry->level == policy::POLICY_LEVEL_RECOMMENDED && 115 entry->value && 116 entry->value->GetAsList(&list)) {
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
H A D | device_local_account.cc | 98 scoped_ptr<base::DictionaryValue> entry(new base::DictionaryValue); 99 entry->SetStringWithoutPathExpansion( 102 entry->SetIntegerWithoutPathExpansion( 106 entry->SetStringWithoutPathExpansion( 110 list.Append(entry.release()); 127 const base::DictionaryValue* entry = NULL; local 128 if (!list->GetDictionary(i, &entry)) { 129 LOG(ERROR) << "Corrupt entry in device-local account list at index " << i 135 if (!entry->GetStringWithoutPathExpansion( 144 if (!entry [all...] |
H A D | device_local_account_policy_provider.cc | 172 const PolicyMap::Entry& entry = it->second; local 174 it->first, entry.level, entry.scope, entry.value->DeepCopy(), NULL);
|
/external/chromium_org/chrome/browser/extensions/api/file_system/ |
H A D | file_system_apitest_chromeos.cc | 50 scoped_ptr<drive::ResourceEntry> entry; variable 54 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); 92 scoped_ptr<google_apis::FileResource> entry; local 96 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); 98 return error == google_apis::HTTP_CREATED && entry; 103 scoped_ptr<google_apis::FileResource> entry; local 108 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); 110 return error == google_apis::HTTP_CREATED && entry ? entry->file_id() : "";
|
/external/chromium_org/chrome/browser/history/ |
H A D | history_tab_helper.cc | 47 void HistoryTabHelper::UpdateHistoryPageTitle(const NavigationEntry& entry) { argument 50 hs->SetPageTitle(entry.GetVirtualURL(), 51 entry.GetTitleForDisplay(std::string())); 89 // Update history. Note that this needs to happen after the entry is complete, 100 web_contents()->GetURL(), details.entry->GetTimestamp(), 125 void HistoryTabHelper::TitleWasSet(NavigationEntry* entry, bool explicit_set) { argument 129 if (entry) { 130 UpdateHistoryPageTitle(*entry); 155 NavigationEntry* entry = tab->GetController().GetLastCommittedEntry(); local 156 if (entry) { [all...] |
H A D | top_sites_cache.h | 54 // Returns the thumbnail as an Image for the specified url. This adds an entry 110 const CanonicalURLEntry& entry() { return entry_; } function in class:history::TopSitesCache::CanonicalURLQuery
|
/external/chromium_org/chrome/browser/safe_browsing/ |
H A D | pe_image_reader_win_unittest.cc | 122 const IMAGE_DEBUG_DIRECTORY* entry = local 124 EXPECT_NE(reinterpret_cast<const IMAGE_DEBUG_DIRECTORY*>(NULL), entry); local
|
/external/chromium_org/chrome/browser/search/ |
H A D | search_terms_tracker.cc | 92 content::NavigationEntry* entry = controller->GetEntryAtIndex(i); local 93 if (entry->GetPageType() == content::PAGE_TYPE_NORMAL) { 94 if (template_url->IsSearchURL(entry->GetURL(), 96 // This entry is a search results page. Extract the terms only if this 97 // isn't the last (i.e. most recent/current) entry as we don't want to 101 template_url->ExtractSearchTermsFromURL(entry->GetURL(), 108 // search terms, as anything before this entry will be unrelated). 116 entry->GetTransitionType())) {
|
/external/chromium_org/chrome/browser/supervised_user/ |
H A D | supervised_user_pref_store.cc | 105 const SupervisedUserSettingsPrefMappingEntry& entry = local 108 if (settings->GetWithoutPathExpansion(entry.settings_name, &value)) 109 prefs_->SetValue(entry.pref_name, value->DeepCopy());
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
H A D | folder_creator.cc | 53 scoped_ptr<google_apis::FileResource> entry) { 101 const google_apis::FileResource& entry = *candidates[i]; local 102 if (!entry.IsDirectory() || entry.labels().is_trashed()) 105 if (!oldest || oldest->created_date() > entry.created_date()) 106 oldest = &entry; 50 DidCreateFolder( const FileIDCallback& callback, google_apis::GDataErrorCode error, scoped_ptr<google_apis::FileResource> entry) argument
|
/external/chromium_org/chrome/browser/ui/blocked_content/ |
H A D | popup_blocker_tab_helper.cc | 78 // NavigationController's last committed entry, not the active entry. For 80 // entry is the page to be loaded as we navigate away from the unloading 82 // because it returns the active entry. 83 content::NavigationEntry* entry = local 85 GURL creator = entry ? entry->GetVirtualURL() : GURL();
|
/external/chromium_org/chrome/browser/ui/bookmarks/ |
H A D | bookmark_tab_helper.cc | 25 // Use the committed entry so the bookmarks bar disappears at the same time 35 // Use the committed entry so the bookmarks bar disappears at the same time 37 const content::NavigationEntry* entry = local 39 if (!entry) 40 entry = web_contents->GetController().GetVisibleEntry(); 41 return chrome::NavEntryIsInstantNTP(web_contents, entry);
|