Suppress tabs permission warning if there is already a browsingHistory warning.
[chromium-blink-merge.git] / chrome / common / safe_browsing / zip_analyzer.h
blob58166abf9e3070f197c3ea7e55893b935b3d7ae3
1 // Copyright (c) 2012 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 // This file contains the zip file analysis implementation for download
6 // protection, which runs in a sandboxed utility process.
8 #ifndef CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_H_
9 #define CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_H_
11 #include "base/platform_file.h"
13 namespace safe_browsing {
14 namespace zip_analyzer {
16 struct Results {
17 bool success;
18 bool has_executable;
19 bool has_archive;
21 Results() : success(false), has_executable(false), has_archive(false) {}
24 void AnalyzeZipFile(base::PlatformFile zip_file, Results* results);
26 } // namespace zip_analyzer
27 } // namespace safe_browsing
29 #endif // CHROME_COMMON_SAFE_BROWSING_ZIP_ANALYZER_H_