OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ | 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ |
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ | 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/extension.h" | 10 #include "extensions/common/extension.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 int size, | 32 int size, |
33 ExtensionIconSet::MatchType match_type); | 33 ExtensionIconSet::MatchType match_type); |
34 }; | 34 }; |
35 | 35 |
36 // Parses the "icons" manifest key. | 36 // Parses the "icons" manifest key. |
37 class IconsHandler : public ManifestHandler { | 37 class IconsHandler : public ManifestHandler { |
38 public: | 38 public: |
39 IconsHandler(); | 39 IconsHandler(); |
40 virtual ~IconsHandler(); | 40 virtual ~IconsHandler(); |
41 | 41 |
42 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; | 42 virtual bool Parse(Extension* extension, base::string16* error) override; |
43 virtual bool Validate(const Extension* extension, | 43 virtual bool Validate(const Extension* extension, |
44 std::string* error, | 44 std::string* error, |
45 std::vector<InstallWarning>* warnings) const OVERRIDE; | 45 std::vector<InstallWarning>* warnings) const override; |
46 | 46 |
47 private: | 47 private: |
48 virtual const std::vector<std::string> Keys() const OVERRIDE; | 48 virtual const std::vector<std::string> Keys() const override; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace extensions | 51 } // namespace extensions |
52 | 52 |
53 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ | 53 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ |
OLD | NEW |