Home
last modified time | relevance | path

Searched refs:download_util (Results 1 – 25 of 35) sorted by relevance

12

/external/chromium/chrome/browser/download/
Ddownload_util_unittest.cc456 download_util::GenerateFileName(GURL(kGenerateFileNameTestCases[i].url), in TEST()
467 download_util::GenerateFileName(GURL(kGenerateFileNameTestCases[i].url), in TEST()
479 download_util::GenerateFileName(GURL("http://www.example.com/images?id=3"), in TEST()
489 download_util::GenerateFileName(GURL("http://www.example.com/images?id=3"), in TEST()
576 download_util::GenerateSafeFileName(kSafeFilenameCases[i].mime_type, &path); in TEST()
Ddownload_item.cc271 download_util::OpenChromeExtension(download_manager_->profile(), in OpenDownload()
345 download_util::RecordDownloadCount(download_util::CANCELLED_COUNT); in Cancel()
371 download_util::RecordDownloadCount(download_util::COMPLETED_COUNT); in Completed()
375 download_util::OpenChromeExtension(download_manager_->profile(), in Completed()
604 download_util::AppendNumberToPath(&name, path_uniquifier_); in GetFileNameToReportUser()
Ddownload_prefs.cc37 if (!extensions[i].empty() && download_util::IsFileSafe(path)) in DownloadPrefs()
56 download_util::GetDefaultDownloadDirectory(); in RegisterUserPrefs()
73 if (download_util::DownloadPathIsDangerous(current_download_dir)) { in RegisterUserPrefs()
Ddownload_manager_unittest.cc368 FilePath crdownload(download_util::GetCrDownloadPath(new_path)); in TEST_F()
410 const FilePath cr_path(download_util::GetCrDownloadPath(new_path)); in TEST_F()
476 const FilePath cr_path(download_util::GetCrDownloadPath(new_path)); in TEST_F()
531 const FilePath cr_path(download_util::GetCrDownloadPath(new_path)); in TEST_F()
542 int uniquifier = download_util::GetUniquePathNumber(new_path); in TEST_F()
545 download_util::AppendNumberToPath(&unique_new_path, uniquifier); in TEST_F()
Ddownload_file_manager.cc83 NewRunnableFunction(&download_util::CancelDownloadRequest, in CreateDownloadFile()
166 NewRunnableFunction(&download_util::CancelDownloadRequest, in StartDownload()
359 uniquifier = download_util::GetUniquePathNumber(new_path); in RenameCompletingDownloadFile()
361 download_util::AppendNumberToPath(&new_path, uniquifier); in RenameCompletingDownloadFile()
Ddrag_download_file.cc119 download_util::RecordDownloadCount( in InitiateDownload()
120 download_util::INITIATED_BY_DRAG_N_DROP_COUNT); in InitiateDownload()
Ddownload_extensions.h13 namespace download_util {
Ddownload_manager.cc285 download_util::GenerateFileNameFromInfo(info, &generated_name); in CheckDownloadUrlDone()
320 info->is_dangerous_file = download_util::IsDangerous( in CheckDownloadUrlDone()
388 info->path_uniquifier = download_util::GetUniquePathNumberWithCrDownload( in CheckIfSuggestedPathExists()
393 download_util::AppendNumberToPath(&(info->suggested_path), in CheckIfSuggestedPathExists()
414 file_util::WriteFile(download_util::GetCrDownloadPath( in CheckIfSuggestedPathExists()
509 download_path = download_util::GetCrDownloadPath(info->path); in AttachDownloadItem()
723 NewRunnableFunction(&download_util::CancelDownloadRequest, in DownloadCancelledInternal()
910 NewRunnableFunction(&download_util::DownloadUrl, in DownloadUrlToFile()
Ddownload_status_updater.cc32 download_util::UpdateAppIconDownloadProgress( in Update()
Ddownload_file.cc39 NewRunnableFunction(&download_util::CancelDownloadRequest, in CancelDownloadRequest()
Ddownload_util.h43 namespace download_util {
Ddownload_extensions.cc14 namespace download_util { namespace
/external/chromium/chrome/browser/ui/views/download/
Ddownload_item_view.cc129 progress_angle_(download_util::kStartAngleDegrees), in DownloadItemView()
231 if (download_util::kSmallProgressIconSize > box_height_) in DownloadItemView()
232 box_y_ = (download_util::kSmallProgressIconSize - box_height_) / 2; in DownloadItemView()
348 download_util::kUnknownIncrementDegrees) % in UpdateDownloadProgress()
349 download_util::kMaxDegrees; in UpdateDownloadProgress()
357 TimeDelta::FromMilliseconds(download_util::kProgressRateMs), this, in StartDownloadProgress()
476 height = std::max<int>(height, download_util::kSmallProgressIconSize); in GetPreferredSize()
492 width += download_util::kSmallProgressIconSize; in GetPreferredSize()
546 download_util::DragDownload(download_, icon, in OnMouseDragged()
764 download_util::kSmallProgressIconSize, kTextWidth); in OnPaint()
[all …]
/external/chromium/chrome/browser/ui/gtk/download/
Ddownload_item_gtk.cc59 const int kMinDownloadItemWidth = download_util::kSmallProgressIconSize;
69 const int kBodyWidth = kTextWidth + 50 + download_util::kSmallProgressIconSize;
172 progress_angle_(download_util::kStartAngleDegrees), in DownloadItemGtk()
224 download_util::kSmallProgressIconSize, in DownloadItemGtk()
225 download_util::kSmallProgressIconSize); in DownloadItemGtk()
501 download_util::kUnknownIncrementDegrees) % in UpdateDownloadProgress()
502 download_util::kMaxDegrees; in UpdateDownloadProgress()
510 base::TimeDelta::FromMilliseconds(download_util::kProgressRateMs), this, in StartDownloadProgress()
865 download_util::PaintDownloadInterrupted(&canvas, in OnProgressAreaExpose()
868 download_util::SMALL); in OnProgressAreaExpose()
[all …]
/external/chromium/chrome/browser/ui/download/
Ddownload_tab_helper.cc29 download_util::RecordDownloadCount( in OnSavePage()
30 download_util::INITIATED_BY_SAVE_PACKAGE_FAILURE_COUNT); in OnSavePage()
/external/chromium/chrome/browser/renderer_host/
Ddownload_throttling_resource_handler.cc32 download_util::RecordDownloadCount( in DownloadThrottlingResourceHandler()
33 download_util::INITIATED_BY_NAVIGATION_COUNT); in DownloadThrottlingResourceHandler()
47 NewRunnableFunction(&download_util::NotifyDownloadInitiated, in DownloadThrottlingResourceHandler()
Ddownload_resource_handler.cc47 download_util::RecordDownloadCount(download_util::UNTHROTTLED_COUNT); in DownloadResourceHandler()
/external/chromium/chrome/browser/ui/cocoa/download/
Ddownload_item_cell.mm11 #include "chrome/browser/download/download_util.h"
39 kImageWidth + download_util::kSmallProgressIconOffset;
590 int x = imagePosition.x - download_util::kSmallProgressIconOffset;
591 int y = imagePosition.y - download_util::kSmallProgressIconOffset;
594 download_util::kSmallProgressIconSize,
595 download_util::kSmallProgressIconSize);
602 download_util::PaintDownloadComplete(&canvas,
605 download_util::SMALL);
607 download_util::PaintDownloadInterrupted(&canvas,
610 download_util::SMALL);
[all …]
Ddownload_util_mac_unittest.mm42 // Add a test file to the pasteboard via the download_util method.
43 download_util::AddFileToPasteboard(pasteboard(), testPath);
Ddownload_util_mac.h15 namespace download_util {
Ddownload_util_mac.mm16 namespace download_util {
80 } // namespace download_util
Ddownload_item_mac.mm56 download_util::NotifySystemOfDownloadComplete(download->full_path());
/external/chromium/chrome/browser/ui/webui/
Ddownloads_dom_handler.cc110 results_value.Append(download_util::CreateDownloadItemValue(download, id)); in OnDownloadUpdated()
164 download_util::DragDownload(file, icon, view); in HandleDrag()
217 results_value.Append(download_util::CreateDownloadItemValue(*it, index)); in SendCurrentDownloads()
Dactive_downloads_ui.cc337 results.Append(download_util::CreateDownloadItemValue(downloads_[i], i)); in SendDownloads()
363 download_util::CreateDownloadItemValue(item, id)); in OnDownloadUpdated()
/external/chromium/chrome/browser/web_applications/
Dweb_app.cc356 int unique_number = download_util::GetUniquePathNumber(shortcut_file); in CreateShortcut()
361 download_util::AppendNumberToPath(&shortcut_file, unique_number); in CreateShortcut()

12