Searched refs:MatchesExtension (Results 1 - 21 of 21) sorted by relevance

/external/chromium_org/chrome/common/safe_browsing/
H A Ddownload_protection_util.cc15 return file.MatchesExtension(FILE_PATH_LITERAL(".zip"));
21 file.MatchesExtension(FILE_PATH_LITERAL(".bas")) ||
22 file.MatchesExtension(FILE_PATH_LITERAL(".bat")) ||
23 file.MatchesExtension(FILE_PATH_LITERAL(".cab")) ||
24 file.MatchesExtension(FILE_PATH_LITERAL(".cmd")) ||
25 file.MatchesExtension(FILE_PATH_LITERAL(".com")) ||
26 file.MatchesExtension(FILE_PATH_LITERAL(".exe")) ||
27 file.MatchesExtension(FILE_PATH_LITERAL(".hta")) ||
28 file.MatchesExtension(FILE_PATH_LITERAL(".msi")) ||
29 file.MatchesExtension(FILE_PATH_LITERA
[all...]
/external/chromium_org/chrome/browser/
H A Dicon_loader_win.cc29 return filepath.MatchesExtension(L".exe") ||
30 filepath.MatchesExtension(L".dll") ||
31 filepath.MatchesExtension(L".ico");
/external/chromium_org/chrome/browser/safe_browsing/
H A Ddownload_protection_service.cc93 if (f.MatchesExtension(FILE_PATH_LITERAL(".exe"))) return EXTENSION_EXE;
94 if (f.MatchesExtension(FILE_PATH_LITERAL(".msi"))) return EXTENSION_MSI;
95 if (f.MatchesExtension(FILE_PATH_LITERAL(".cab"))) return EXTENSION_CAB;
96 if (f.MatchesExtension(FILE_PATH_LITERAL(".sys"))) return EXTENSION_SYS;
97 if (f.MatchesExtension(FILE_PATH_LITERAL(".scr"))) return EXTENSION_SCR;
98 if (f.MatchesExtension(FILE_PATH_LITERAL(".drv"))) return EXTENSION_DRV;
99 if (f.MatchesExtension(FILE_PATH_LITERAL(".bat"))) return EXTENSION_BAT;
100 if (f.MatchesExtension(FILE_PATH_LITERAL(".zip"))) return EXTENSION_ZIP;
101 if (f.MatchesExtension(FILE_PATH_LITERAL(".rar"))) return EXTENSION_RAR;
102 if (f.MatchesExtension(FILE_PATH_LITERA
[all...]
/external/chromium_org/chrome/browser/download/
H A Dchrome_download_manager_delegate.cc265 if (path.MatchesExtension(extensions::kExtensionFileExtension))
716 if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf")) &&
727 if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf")) ||
728 path.MatchesExtension(FILE_PATH_LITERAL(".htm")) ||
729 path.MatchesExtension(FILE_PATH_LITERAL(".html")) ||
730 path.MatchesExtension(FILE_PATH_LITERAL(".shtm")) ||
731 path.MatchesExtension(FILE_PATH_LITERAL(".shtml")) ||
732 path.MatchesExtension(FILE_PATH_LITERAL(".svg")) ||
733 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) ||
734 path.MatchesExtension(FILE_PATH_LITERA
[all...]
H A Dsave_package_file_picker.cc155 !suggested_path_copy.MatchesExtension(FILE_PATH_LITERAL(".htm")) &&
156 !suggested_path_copy.MatchesExtension(FILE_PATH_LITERAL(".html"))) {
H A Ddownload_target_determiner.cc521 if (!local_path_.MatchesExtension(FILE_PATH_LITERAL(".pdf")))
639 DCHECK(!virtual_path_.MatchesExtension(kCrdownloadSuffix));
640 DCHECK(!local_path_.MatchesExtension(kCrdownloadSuffix));
789 !filename.MatchesExtension(extensions::kExtensionFileExtension) &&
H A Ddownload_shelf_context_menu.cc398 return path.MatchesExtension(FILE_PATH_LITERAL(".pdf"));
H A Ddownload_target_determiner_unittest.cc434 EXPECT_TRUE(target_info->intermediate_path.MatchesExtension(
484 if (new_path.MatchesExtension(FILE_PATH_LITERAL(".remove")))
494 if (path.MatchesExtension(FILE_PATH_LITERAL(".exe")))
/external/chromium_org/chrome/browser/chromeos/file_manager/
H A Dopen_with_browser.cc61 if (file_path.MatchesExtension(kFileExtensionsViewableInBrowser[i]))
188 if (file_path.MatchesExtension(kPdfExtension))
190 if (file_path.MatchesExtension(kSwfExtension))
/external/chromium_org/printing/
H A Dimage.cc26 if (path.MatchesExtension(FILE_PATH_LITERAL(".png"))) {
28 } else if (path.MatchesExtension(FILE_PATH_LITERAL(".emf"))) {
/external/chromium_org/base/files/
H A Dfile_path.h287 bool MatchesExtension(const StringType& extension) const;
H A Dfile_path_unittest.cc968 TEST_F(FilePathTest, MatchesExtension) {
1008 EXPECT_EQ(cases[i].expected, path.MatchesExtension(ext)) <<
H A Dfile_path.cc464 bool FilePath::MatchesExtension(const StringType& extension) const { function in class:base::FilePath
/external/chromium_org/chrome/browser/extensions/api/file_handlers/
H A Dapp_file_handler_util.cc43 if (path.MatchesExtension(
52 path.MatchesExtension(base::FilePath::StringType())) {
/external/chromium_org/third_party/leveldatabase/
H A Denv_chromium_unittest.cc169 if (fname.MatchesExtension(extension))
180 if (fname.MatchesExtension(FPL(".ldb"))) {
H A Denv_chromium.cc355 return path.MatchesExtension(table_extension);
439 if (current.MatchesExtension(table_extension))
441 if (current.MatchesExtension(backup_table_extension))
500 if (make_backup_ && fname_filepath.MatchesExtension(table_extension)) {
/external/chromium_org/chrome/browser/extensions/
H A Dexternal_pref_loader.cc54 if (file.MatchesExtension(extension)) {
/external/chromium_org/content/browser/dom_storage/
H A Ddom_storage_area.cc52 DCHECK(name.MatchesExtension(kDatabaseFileExtension));
H A Ddom_storage_context_impl.cc96 if (path.MatchesExtension(DOMStorageArea::kDatabaseFileExtension)) {
/external/chromium_org/content/browser/download/
H A Ddownload_stats.cc202 if (file_path.MatchesExtension(kDangerousFileTypes[i]))
/external/chromium_org/extensions/common/
H A Dfile_util.cc240 if (!current.MatchesExtension(kExtensionKeyFileExtension))

Completed in 682 milliseconds