| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_ | 5 #ifndef EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_ |
| 6 #define EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_ | 6 #define EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "extensions/common/manifest_handler.h" | 12 #include "extensions/common/manifest_handler.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 class Extension; | 15 class Extension; |
| 16 class ManifestPermission; | |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace extensions { | 18 namespace extensions { |
| 20 | 19 |
| 21 // Parses the "event_rules" manifest key. | 20 // Parses the "event_rules" manifest key. |
| 22 class DeclarativeManifestHandler : public ManifestHandler { | 21 class DeclarativeManifestHandler : public ManifestHandler { |
| 23 public: | 22 public: |
| 24 DeclarativeManifestHandler(); | 23 DeclarativeManifestHandler(); |
| 25 ~DeclarativeManifestHandler() override; | 24 ~DeclarativeManifestHandler() override; |
| 26 | 25 |
| 27 // ManifestHandler overrides. | 26 // ManifestHandler overrides. |
| 28 bool Parse(Extension* extension, base::string16* error) override; | 27 bool Parse(Extension* extension, base::string16* error) override; |
| 29 | 28 |
| 30 private: | 29 private: |
| 31 // ManifestHandler overrides. | 30 // ManifestHandler overrides. |
| 32 const std::vector<std::string> Keys() const override; | 31 const std::vector<std::string> Keys() const override; |
| 33 | 32 |
| 34 DISALLOW_COPY_AND_ASSIGN(DeclarativeManifestHandler); | 33 DISALLOW_COPY_AND_ASSIGN(DeclarativeManifestHandler); |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace extensions | 36 } // namespace extensions |
| 38 | 37 |
| 39 #endif // EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_ | 38 #endif // EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_ |
| OLD | NEW |