Home
last modified time | relevance | path

Searched refs:uniquifier (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/chrome/browser/download/
Ddownload_path_reservation_tracker.cc217 for (int uniquifier = 1; in CreateReservation() local
218 uniquifier <= DownloadPathReservationTracker::kMaxUniqueFiles; in CreateReservation()
219 ++uniquifier) { in CreateReservation()
221 std::string suffix(base::StringPrintf(" (%d)", uniquifier)); in CreateReservation()
/external/chromium/chrome/browser/download/
Ddownload_file_manager.cc349 int uniquifier = 0; in RenameCompletingDownloadFile() local
359 uniquifier = download_util::GetUniquePathNumber(new_path); in RenameCompletingDownloadFile()
360 if (uniquifier > 0) { in RenameCompletingDownloadFile()
361 download_util::AppendNumberToPath(&new_path, uniquifier); in RenameCompletingDownloadFile()
383 new_path, uniquifier)); in RenameCompletingDownloadFile()
Ddownload_item.h246 void set_path_uniquifier(int uniquifier) { path_uniquifier_ = uniquifier; } in set_path_uniquifier() argument
Ddownload_manager_unittest.cc542 int uniquifier = download_util::GetUniquePathNumber(new_path); in TEST_F() local
544 EXPECT_NE(0, uniquifier); in TEST_F()
545 download_util::AppendNumberToPath(&unique_new_path, uniquifier); in TEST_F()
Ddownload_manager.cc666 int uniquifier) { in OnDownloadRenamedToFinalName() argument
669 << " uniquifier = " << uniquifier; in OnDownloadRenamedToFinalName()
677 DCHECK_EQ(0, uniquifier) << "We should not uniquify SAFE downloads twice"; in OnDownloadRenamedToFinalName()
685 if (uniquifier) in OnDownloadRenamedToFinalName()
686 item->set_path_uniquifier(uniquifier); in OnDownloadRenamedToFinalName()
Ddownload_manager.h148 int uniquifier);
/external/chromium_org/content/browser/download/
Ddownload_file_impl.cc113 int uniquifier = file_util::GetUniquePathNumber( in RenameAndUniquify() local
115 if (uniquifier > 0) { in RenameAndUniquify()
117 base::StringPrintf(" (%d)", uniquifier)); in RenameAndUniquify()
/external/chromium_org/chrome/browser/chromeos/drive/
Ddrive_integration_service.cc141 for (int uniquifier = 1; base::PathExists(dest_directory); ++uniquifier) { in InitializeMetadata() local
144 .InsertBeforeExtensionASCII(base::StringPrintf(" (%d)", uniquifier)); in InitializeMetadata()
/external/chromium_org/base/
Dfile_util_posix.cc732 int uniquifier = in MakeUniqueDirectory() local
734 if (uniquifier < 0) in MakeUniqueDirectory()
736 base::FilePath test_path = (uniquifier == 0) ? path : in MakeUniqueDirectory()
738 base::StringPrintf(" (%d)", uniquifier)); in MakeUniqueDirectory()
/external/chromium_org/chrome/browser/extensions/
Dwebstore_installer.cc129 int uniquifier = in GetDownloadFilePath() local
131 if (uniquifier > 0) { in GetDownloadFilePath()
133 base::StringPrintf(" (%d)", uniquifier)); in GetDownloadFilePath()