OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "chrome/common/extensions/manifest.h" | 15 #include "chrome/common/extensions/manifest.h" |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 class Extension; | 18 class Extension; |
19 | 19 |
20 // An interface for clients that recognize and parse keys in extension | 20 // An interface for clients that recognize and parse keys in extension |
21 // manifests. | 21 // manifests. |
22 class ManifestHandler { | 22 class ManifestHandler { |
23 public: | 23 public: |
24 ManifestHandler(); | 24 ManifestHandler(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 // The priority for each manifest handler. Handlers with lower priority | 123 // The priority for each manifest handler. Handlers with lower priority |
124 // values are evaluated first. | 124 // values are evaluated first. |
125 ManifestHandlerPriorityMap priority_map_; | 125 ManifestHandlerPriorityMap priority_map_; |
126 bool is_sorted_; | 126 bool is_sorted_; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace extensions | 129 } // namespace extensions |
130 | 130 |
131 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_H_ | 131 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_H_ |
OLD | NEW |