blob: 00aef61e088a301c8ca79b42db61587380a0ce96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2011 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.
//
// Utility functions to check executable signatures for malicious binary
// detection. Each platform has its own implementation of this class.
#ifndef CHROME_BROWSER_SAFE_BROWSING_SIGNATURE_UTIL_H_
#define CHROME_BROWSER_SAFE_BROWSING_SIGNATURE_UTIL_H_
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
namespace base {
class FilePath;
}
namespace safe_browsing {
class ClientDownloadRequest_SignatureInfo;
class SignatureUtil : public base::RefCountedThreadSafe<SignatureUtil> {
public:
SignatureUtil();
// Fills in the DownloadRequest_SignatureInfo for the given file path.
// This method may be called on any thread.
virtual void CheckSignature(
const base::FilePath& file_path,
ClientDownloadRequest_SignatureInfo* signature_info);
protected:
friend class base::RefCountedThreadSafe<SignatureUtil>;
virtual ~SignatureUtil();
private:
DISALLOW_COPY_AND_ASSIGN(SignatureUtil);
};
} // namespace safe_browsing
#endif // CHROME_BROWSER_SAFE_BROWSING_SIGNATURE_UTIL_H_
|