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

Unified Diff: chrome/utility/safe_browsing/mac/udif.h

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: simplifying data structures in download_protection_service.cc Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/safe_browsing/mac/udif.h
diff --git a/chrome/utility/safe_browsing/mac/udif.h b/chrome/utility/safe_browsing/mac/udif.h
index fbb17c9280743e2611deba7d9955657f8e175413..f5129590f45d7ef068ffd600cd46f8e0cf502e4f 100644
--- a/chrome/utility/safe_browsing/mac/udif.h
+++ b/chrome/utility/safe_browsing/mac/udif.h
@@ -51,6 +51,9 @@ class UDIFParser {
// If this returns false, it is not legal to call any other methods.
bool Parse();
+ // Returns the blob of DMG signature data.
+ const std::vector<uint8_t>& GetDmgSignatureData();
+
// Returns the number of partitions in this UDIF image.
size_t GetNumberOfPartitions();
@@ -79,6 +82,8 @@ class UDIFParser {
// All blocks in the UDIF image.
std::vector<std::unique_ptr<const UDIFBlock>> blocks_;
uint16_t block_size_; // The image's block size, in bytes.
+ std::vector<uint8_t>
Jialiu Lin 2017/06/28 00:23:35 Nit: Shorten the comment to make it fit into one l
mortonm 2017/06/28 16:24:41 Done.
+ signature_blob_; // Data that comprises the DMG signature
DISALLOW_COPY_AND_ASSIGN(UDIFParser);
};

Powered by Google App Engine
This is Rietveld 408576698