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

Unified Diff: extensions/utility/unpacker.h

Issue 2321823002: Exclude exe files while unzipping CRXes (Closed)
Patch Set: Ignore case Created 4 years, 3 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/test/data/extensions/blocked_file_types.pem ('k') | extensions/utility/unpacker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/utility/unpacker.h
diff --git a/extensions/utility/unpacker.h b/extensions/utility/unpacker.h
index cc2bbca1ff6b146c565437f3b6c749b25d46a708..25c9e529c755e73a6bb4f185a61874f8e95e7893 100644
--- a/extensions/utility/unpacker.h
+++ b/extensions/utility/unpacker.h
@@ -34,6 +34,9 @@ class Unpacker {
int creation_flags);
~Unpacker();
+ // Returns true if the given base::FilePath should be unzipped.
+ static bool ShouldExtractFile(const base::FilePath& file_path);
+
// Runs the processing steps for the extension. On success, this returns true
// and the decoded images will be in a file at
// |working_dir|/kDecodedImagesFilename and the decoded messages will be in a
« no previous file with comments | « chrome/test/data/extensions/blocked_file_types.pem ('k') | extensions/utility/unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698