Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: chrome/common/safe_browsing/download_protection_util.h

Issue 379563006: Merge 281089 "Include the latest binary download info in safe br..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/safe_browsing/download_protection_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_ 5 #ifndef CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
6 #define CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_ 6 #define CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
7 7
8 #include "chrome/common/safe_browsing/csd.pb.h"
9
8 namespace base { 10 namespace base {
9 class FilePath; 11 class FilePath;
10 } 12 }
11 13
12 namespace safe_browsing { 14 namespace safe_browsing {
13 namespace download_protection_util { 15 namespace download_protection_util {
14 16
15 // Returns true if the given file is a supported binary file type. 17 // Returns true if the given file is a supported binary file type.
16 bool IsBinaryFile(const base::FilePath& file); 18 bool IsBinaryFile(const base::FilePath& file);
17 19
18 // Returns true if the given file is a supported archive file type. 20 // Returns true if the given file is a supported archive file type.
19 bool IsArchiveFile(const base::FilePath& file); 21 bool IsArchiveFile(const base::FilePath& file);
20 22
23 // Returns the DownloadType of the file at |path|. This function is only valid
24 // for paths that satisfy IsBinaryFile() above.
25 ClientDownloadRequest::DownloadType GetDownloadType(const base::FilePath& file);
26
21 } // namespace download_protection_util 27 } // namespace download_protection_util
22 } // namespace safe_browsing 28 } // namespace safe_browsing
23 29
24 #endif // CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_ 30 #endif // CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/safe_browsing/download_protection_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698