Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / extensions / common / api / declarative / declarative_manifest_handler.h
blobf555bfffcaea4909d55f17d038c91f02d99500db
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_
6 #define EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_
8 #include <string>
9 #include <vector>
11 #include "extensions/common/manifest_handler.h"
13 namespace extensions {
14 class Extension;
15 class ManifestPermission;
18 namespace extensions {
20 // Parses the "event_rules" manifest key.
21 class DeclarativeManifestHandler : public ManifestHandler {
22 public:
23 DeclarativeManifestHandler();
24 ~DeclarativeManifestHandler() override;
26 // ManifestHandler overrides.
27 bool Parse(Extension* extension, base::string16* error) override;
29 private:
30 // ManifestHandler overrides.
31 const std::vector<std::string> Keys() const override;
33 DISALLOW_COPY_AND_ASSIGN(DeclarativeManifestHandler);
36 } // namespace extensions
38 #endif // EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_HANDLER_H_