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

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

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: correcting rebase mixup 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/safe_browsing/mac/dmg_iterator.cc ('k') | chrome/utility/safe_browsing/mac/udif.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..13aee9dbf765b439c716cf963c8db4728e6e078c 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>& GetCodeSignature();
+
// Returns the number of partitions in this UDIF image.
size_t GetNumberOfPartitions();
@@ -79,6 +82,7 @@ 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> signature_blob_; // DMG signature.
DISALLOW_COPY_AND_ASSIGN(UDIFParser);
};
« no previous file with comments | « chrome/utility/safe_browsing/mac/dmg_iterator.cc ('k') | chrome/utility/safe_browsing/mac/udif.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698