summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/safe_browsing/download_type_util.h
blob: 87f17e4e479349dbdcb72cfa6ccf8c3d46d4555b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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_TYPE_UTIL_H_
#define CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_TYPE_UTIL_H_

#include "base/files/file_path.h"
#include "components/safe_browsing/proto/csd.pb.h"

namespace safe_browsing {
namespace download_type_util {

// Returns the DownloadType of the file at |path|. This function is only valid
// for paths that satisfy IsSupportedBinaryFile() above.
ClientDownloadRequest::DownloadType GetDownloadType(const base::FilePath& file);

}  // namespace download_type_util
}  // namespace safe_browsing

#endif  // CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_TYPE_UTIL_H_