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

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

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: simplifying data structures in download_protection_service.cc Created 3 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
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 archive analyzer analysis implementation for download 5 // This file contains the archive analyzer 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_ARCHIVE_ANALYZER_RESULTS_H_ 8 #ifndef CHROME_COMMON_SAFE_BROWSING_ARCHIVE_ANALYZER_RESULTS_H_
9 #define CHROME_COMMON_SAFE_BROWSING_ARCHIVE_ANALYZER_RESULTS_H_ 9 #define CHROME_COMMON_SAFE_BROWSING_ARCHIVE_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 "components/safe_browsing/csd.pb.h" 14 #include "components/safe_browsing/csd.pb.h"
15 15
16 namespace safe_browsing { 16 namespace safe_browsing {
17 17
18 struct ArchiveAnalyzerResults { 18 struct ArchiveAnalyzerResults {
19 bool success; 19 bool success;
20 bool has_executable; 20 bool has_executable;
21 bool has_archive; 21 bool has_archive;
22 google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary> 22 google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary>
23 archived_binary; 23 archived_binary;
24 std::vector<base::FilePath> archived_archive_filenames; 24 std::vector<base::FilePath> archived_archive_filenames;
25 #if defined(OS_MACOSX)
26 std::vector<uint8_t> signature_blob;
27 #endif // OS_MACOSX
25 ArchiveAnalyzerResults(); 28 ArchiveAnalyzerResults();
26 ArchiveAnalyzerResults(const ArchiveAnalyzerResults& other); 29 ArchiveAnalyzerResults(const ArchiveAnalyzerResults& other);
27 ~ArchiveAnalyzerResults(); 30 ~ArchiveAnalyzerResults();
28 }; 31 };
29 32
30 } // namespace safe_browsing 33 } // namespace safe_browsing
31 34
32 #endif // CHROME_COMMON_SAFE_BROWSING_ARCHIVE_ANALYZER_RESULTS_H_ 35 #endif // CHROME_COMMON_SAFE_BROWSING_ARCHIVE_ANALYZER_RESULTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698