OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file contains the zip file analysis implementation for download | 5 // This file contains the zip file analysis implementation for download |
6 // protection, which runs in a sandboxed utility process. | 6 // protection, which runs in a sandboxed utility process. |
7 | 7 |
8 #ifndef CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ | 8 #ifndef CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ |
9 #define CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ | 9 #define CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "chrome/common/safe_browsing/csd.pb.h" | 14 #include "components/safe_browsing/csd.pb.h" |
15 | 15 |
16 namespace safe_browsing { | 16 namespace safe_browsing { |
17 namespace zip_analyzer { | 17 namespace zip_analyzer { |
18 | 18 |
19 struct Results { | 19 struct Results { |
20 bool success; | 20 bool success; |
21 bool has_executable; | 21 bool has_executable; |
22 bool has_archive; | 22 bool has_archive; |
23 google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary> | 23 google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary> |
24 archived_binary; | 24 archived_binary; |
25 std::vector<base::FilePath> archived_archive_filenames; | 25 std::vector<base::FilePath> archived_archive_filenames; |
26 Results(); | 26 Results(); |
27 Results(const Results& other); | 27 Results(const Results& other); |
28 ~Results(); | 28 ~Results(); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace zip_analyzer | 31 } // namespace zip_analyzer |
32 } // namespace safe_browsing | 32 } // namespace safe_browsing |
33 | 33 |
34 #endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ | 34 #endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ |
OLD | NEW |