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

Unified Diff: chrome/common/safe_archive_analyzer.mojom

Issue 2737763002: Convert utility process Safe Browsing ZIP/DMG Analyzer IPC to mojo (Closed)
Patch Set: Add //components/safe_browsing:csd_proto to typemap deps. Created 3 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_archive_analyzer.mojom
diff --git a/chrome/common/safe_archive_analyzer.mojom b/chrome/common/safe_archive_analyzer.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..4a08ec204a1ede10c0c9efc62c26e056c6080a4a
--- /dev/null
+++ b/chrome/common/safe_archive_analyzer.mojom
@@ -0,0 +1,28 @@
+// Copyright 2017 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.
+
+// Safe archive file analyzer provided by the utility process and exposed
+// by mojo policy control to the chrome browser process when build flag
+// FULL_SAFE_BROWSING is enabled.
+
+module chrome.mojom;
+
+import "mojo/common/file.mojom";
+
+interface SafeArchiveAnalyzer {
+ // Build flag FULL_SAFE_BROWSING: Analyze the |zip_file| for malicious
+ // download protection, given a |temporary_file| used to extract files
+ // from the |zip_file| archive.
+ AnalyzeZipFile(mojo.common.mojom.File zip_file,
+ mojo.common.mojom.File temporary_file)
+ => (SafeArchiveAnalyzerResults results);
+
+ // Build flag FULL_SAFE_BROWSING, on OS_MACOSX: Analyze the |dmg_file|
+ // for malicious download protection.
+ AnalyzeDmgFile(mojo.common.mojom.File dmg_file)
+ => (SafeArchiveAnalyzerResults results);
+};
+
+[Native]
+struct SafeArchiveAnalyzerResults;

Powered by Google App Engine
This is Rietveld 408576698