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

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

Issue 1262753002: [SafeBrowsing] Send pings for Zip files that contain other archives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
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>
12
13 #include "base/files/file_path.h"
11 #include "chrome/common/safe_browsing/csd.pb.h" 14 #include "chrome/common/safe_browsing/csd.pb.h"
12 15
13 namespace safe_browsing { 16 namespace safe_browsing {
14 namespace zip_analyzer { 17 namespace zip_analyzer {
15 18
16 struct Results { 19 struct Results {
17 bool success; 20 bool success;
18 bool has_executable; 21 bool has_executable;
19 bool has_archive; 22 bool has_archive;
20 google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary> 23 google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary>
21 archived_binary; 24 archived_binary;
25 std::vector<base::FilePath::StringType> archived_archive_filetypes;
22 Results(); 26 Results();
23 ~Results(); 27 ~Results();
24 }; 28 };
25 29
26 } // namespace zip_analyzer 30 } // namespace zip_analyzer
27 } // namespace safe_browsing 31 } // namespace safe_browsing
28 32
29 #endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_ 33 #endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698