summaryrefslogtreecommitdiffstats
path: root/chrome/common/safe_browsing/download_protection_util.h
diff options
context:
space:
mode:
authorbryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-14 18:43:58 +0000
committerbryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-14 18:43:58 +0000
commitf6fd9049914bd81b79dea8ef8a4787624e45459e (patch)
tree8a6368f2645d016b0bcdd080a598cddfa46deeed /chrome/common/safe_browsing/download_protection_util.h
parentea530d0f531b43aa8ff9340d9c5cf5d6a85a4cf4 (diff)
downloadchromium_src-f6fd9049914bd81b79dea8ef8a4787624e45459e.zip
chromium_src-f6fd9049914bd81b79dea8ef8a4787624e45459e.tar.gz
chromium_src-f6fd9049914bd81b79dea8ef8a4787624e45459e.tar.bz2
Move zip analysis for SafeBrowsing into a utility process.
BUG=165030 Review URL: https://chromiumcodereview.appspot.com/11775025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/safe_browsing/download_protection_util.h')
-rw-r--r--chrome/common/safe_browsing/download_protection_util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/common/safe_browsing/download_protection_util.h b/chrome/common/safe_browsing/download_protection_util.h
new file mode 100644
index 0000000..8a0ff7c
--- /dev/null
+++ b/chrome/common/safe_browsing/download_protection_util.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
+#define CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
+
+namespace base {
+class FilePath;
+}
+
+namespace safe_browsing {
+namespace download_protection_util {
+
+// Returns true if the given file is a supported binary file type.
+bool IsBinaryFile(const base::FilePath& file);
+
+// Returns true if the given file is a supported archive file type.
+bool IsArchiveFile(const base::FilePath& file);
+
+} // namespace download_protection_util
+} // namespace safe_browsing
+
+#endif // CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_