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

Unified Diff: chrome/common/safe_browsing/zip_analyzer_results.h

Issue 999003003: Include attributes of zipped binaries in ClientDownloadRequests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zip2
Patch Set: fix ordering of SandboxedZipAnalyzer methods Created 5 years, 9 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/common/safe_browsing/zip_analyzer_results.h
diff --git a/chrome/common/safe_browsing/zip_analyzer.h b/chrome/common/safe_browsing/zip_analyzer_results.h
similarity index 50%
copy from chrome/common/safe_browsing/zip_analyzer.h
copy to chrome/common/safe_browsing/zip_analyzer_results.h
index b88a8e69f45e90635a3e6be6931bb3be9bd50674..b1d0be3fb3dbfc605f26531469d975153347d5ad 100644
--- a/chrome/common/safe_browsing/zip_analyzer.h
+++ b/chrome/common/safe_browsing/zip_analyzer_results.h
@@ -1,14 +1,14 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file contains the zip file analysis implementation for download
// protection, which runs in a sandboxed utility process.
-#ifndef CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_H_
-#define CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_H_
+#ifndef CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_
+#define CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_
-#include "base/files/file.h"
+#include "chrome/common/safe_browsing/csd.pb.h"
namespace safe_browsing {
namespace zip_analyzer {
@@ -17,13 +17,13 @@ struct Results {
bool success;
bool has_executable;
bool has_archive;
-
- Results() : success(false), has_executable(false), has_archive(false) {}
+ google::protobuf::RepeatedPtrField<ClientDownloadRequest_ArchivedBinary>
+ archived_binary;
+ Results();
+ ~Results();
};
-void AnalyzeZipFile(base::File zip_file, Results* results);
-
} // namespace zip_analyzer
} // namespace safe_browsing
-#endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_H_
+#endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_RESULTS_H_

Powered by Google App Engine
This is Rietveld 408576698