| 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_DATA_H_ | 5 #ifndef EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_DATA_H_ |
| 6 #define EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_DATA_H_ | 6 #define EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_DATA_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 11 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 12 #include "extensions/common/api/events.h" | 13 #include "extensions/common/api/events.h" |
| 13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 14 #include "extensions/common/manifest_handler.h" | 15 #include "extensions/common/manifest_handler.h" |
| 15 | 16 |
| 16 namespace extensions { | 17 namespace extensions { |
| 17 | 18 |
| 18 // The parsed form of the "event_rules" manifest entry. | 19 // The parsed form of the "event_rules" manifest entry. |
| 19 class DeclarativeManifestData : public Extension::ManifestData { | 20 class DeclarativeManifestData : public Extension::ManifestData { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 const std::string& event); | 37 const std::string& event); |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 std::map<std::string, std::vector<linked_ptr<Rule>>> event_rules_map_; | 40 std::map<std::string, std::vector<linked_ptr<Rule>>> event_rules_map_; |
| 40 DISALLOW_COPY_AND_ASSIGN(DeclarativeManifestData); | 41 DISALLOW_COPY_AND_ASSIGN(DeclarativeManifestData); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace extensions | 44 } // namespace extensions |
| 44 | 45 |
| 45 #endif // EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_DATA_H_ | 46 #endif // EXTENSIONS_COMMON_API_DECLARATIVE_DECLARATIVE_MANIFEST_DATA_H_ |
| OLD | NEW |