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_OPTIONS_PAGE_INFO_H_ | 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_OPTIONS_PAGE_INFO_H_ |
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_OPTIONS_PAGE_INFO_H_ | 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_OPTIONS_PAGE_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(OptionsPageInfo); | 65 DISALLOW_COPY_AND_ASSIGN(OptionsPageInfo); |
66 }; | 66 }; |
67 | 67 |
68 // Parses the "options_ui" manifest key and the legacy "options_page" key. | 68 // Parses the "options_ui" manifest key and the legacy "options_page" key. |
69 class OptionsPageManifestHandler : public ManifestHandler { | 69 class OptionsPageManifestHandler : public ManifestHandler { |
70 public: | 70 public: |
71 OptionsPageManifestHandler(); | 71 OptionsPageManifestHandler(); |
72 virtual ~OptionsPageManifestHandler(); | 72 virtual ~OptionsPageManifestHandler(); |
73 | 73 |
74 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; | 74 virtual bool Parse(Extension* extension, base::string16* error) override; |
75 virtual bool Validate(const Extension* extension, | 75 virtual bool Validate(const Extension* extension, |
76 std::string* error, | 76 std::string* error, |
77 std::vector<InstallWarning>* warnings) const OVERRIDE; | 77 std::vector<InstallWarning>* warnings) const override; |
78 | 78 |
79 private: | 79 private: |
80 virtual const std::vector<std::string> Keys() const OVERRIDE; | 80 virtual const std::vector<std::string> Keys() const override; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(OptionsPageManifestHandler); | 82 DISALLOW_COPY_AND_ASSIGN(OptionsPageManifestHandler); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace extensions | 85 } // namespace extensions |
86 | 86 |
87 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_OPTIONS_PAGE_INFO_H_ | 87 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_OPTIONS_PAGE_INFO_H_ |
OLD | NEW |