OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_FILTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_FILTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_FILTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_FILTER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 | 9 |
| 10 namespace base { |
10 class FilePath; | 11 class FilePath; |
| 12 } |
11 | 13 |
12 namespace extensions { | 14 namespace extensions { |
13 | 15 |
14 // Determines which files should be included in a packaged extension. | 16 // Determines which files should be included in a packaged extension. |
15 // Designed specifically to operate with the callback in chrome/common/zip. | 17 // Designed specifically to operate with the callback in chrome/common/zip. |
16 class ExtensionCreatorFilter | 18 class ExtensionCreatorFilter |
17 : public base::RefCounted<ExtensionCreatorFilter> { | 19 : public base::RefCounted<ExtensionCreatorFilter> { |
18 public: | 20 public: |
19 ExtensionCreatorFilter() {} | 21 ExtensionCreatorFilter() {} |
20 | 22 |
21 // Returns true if the given FilePath should be included in a | 23 // Returns true if the given base::FilePath should be included in a |
22 // packed extension. | 24 // packed extension. |
23 bool ShouldPackageFile(const FilePath& file_path); | 25 bool ShouldPackageFile(const base::FilePath& file_path); |
24 | 26 |
25 private: | 27 private: |
26 friend class base::RefCounted<ExtensionCreatorFilter>; | 28 friend class base::RefCounted<ExtensionCreatorFilter>; |
27 ~ExtensionCreatorFilter() {} | 29 ~ExtensionCreatorFilter() {} |
28 DISALLOW_COPY_AND_ASSIGN(ExtensionCreatorFilter); | 30 DISALLOW_COPY_AND_ASSIGN(ExtensionCreatorFilter); |
29 }; | 31 }; |
30 | 32 |
31 } // namespace etensions | 33 } // namespace etensions |
32 | 34 |
33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_FILTER_H_ | 35 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CREATOR_FILTER_H_ |
OLD | NEW |