Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Safe archive file analyzer provided by the utility process and exposed | |
| 6 // by mojo policy control to the chrome browser process when build flag | |
| 7 // FULL_SAFE_BROWSING is enabled. | |
| 8 | |
| 9 module chrome.mojom; | |
| 10 | |
| 11 import "mojo/common/file.mojom"; | |
| 12 | |
| 13 interface SafeArchiveAnalyzer { | |
| 14 // Build flag FULL_SAFE_BROWSING: Analyze the |zip_file| for malicious | |
| 15 // download protection, given a |temporary_file| used to extract files | |
|
tibell
2017/03/08 23:55:47
The |temporary_file| confuses me. What is it for?
Noel Gordon
2017/03/09 02:24:59
Given the chrome_utility_messages.h API, they only
| |
| 16 // from the |zip_file| archive. | |
| 17 AnalyzeZipFile(mojo.common.mojom.File zip_file, | |
| 18 mojo.common.mojom.File temporary_file) | |
| 19 => (SafeArchiveAnalyzerResults results); | |
| 20 | |
| 21 // Build flag FULL_SAFE_BROWSING, on OS_MACOSX: Analyze the |dmg_file| | |
| 22 // for malicious download protection. | |
| 23 AnalyzeDmgFile(mojo.common.mojom.File dmg_file) | |
| 24 => (SafeArchiveAnalyzerResults results); | |
| 25 }; | |
| 26 | |
| 27 [Native] | |
| 28 struct SafeArchiveAnalyzerResults; | |
| OLD | NEW |