Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |