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

Side by Side Diff: extensions/utility/extension_extractor_filter.h

Issue 2321823002: Exclude exe files while unzipping CRXes (Closed)
Patch Set: Fix build 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef EXTENSIONS_UTILITY_EXTENSION_EXTRACTOR_FILTER_H_
6 #define EXTENSIONS_UTILITY_EXTENSION_EXTRACTOR_FILTER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10
11 namespace base {
12 class FilePath;
13 }
14
15 namespace extensions {
16
17 // Determines which files should be included when unzipping a CRX.
18 class ExtensionExtractorFilter
19 : public base::RefCounted<ExtensionExtractorFilter> {
Devlin 2016/09/08 21:10:16 Given this class doesn't need any state, I'd much
meacer 2016/09/08 22:40:10 That's fair, I copied this over from ExtensionCrea
20 public:
21 ExtensionExtractorFilter() {}
22
23 // Returns true if the given base::FilePath should be unzipped.
24 bool ShouldExtractFile(const base::FilePath& file_path);
25
26 private:
27 friend class base::RefCounted<ExtensionExtractorFilter>;
28 ~ExtensionExtractorFilter() {}
29 DISALLOW_COPY_AND_ASSIGN(ExtensionExtractorFilter);
30 };
31
32 } // namespace extensions
33
34 #endif // EXTENSIONS_UTILITY_EXTENSION_EXTRACTOR_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698