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

Side by Side Diff: chrome/browser/extensions/extension_creator_filter.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_creator.h ('k') | chrome/browser/extensions/external_provider_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698