OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 EXTENSIONS_COMMON_EXTENSION_SET_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_SET_H_ |
6 #define EXTENSIONS_COMMON_EXTENSION_SET_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_SET_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <iterator> | 10 #include <iterator> |
9 #include <map> | 11 #include <map> |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 #include "base/callback.h" | 14 #include "base/callback.h" |
13 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
15 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
16 #include "url/gurl.h" | 19 #include "url/gurl.h" |
17 | 20 |
18 namespace extensions { | 21 namespace extensions { |
19 | 22 |
20 // The one true extension container. Extensions are identified by their id. | 23 // The one true extension container. Extensions are identified by their id. |
21 // Only one extension can be in the set with a given ID. | 24 // Only one extension can be in the set with a given ID. |
22 class ExtensionSet { | 25 class ExtensionSet { |
23 public: | 26 public: |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // discarding the set (e.g., on shutdown) and we do not want to track that as | 147 // discarding the set (e.g., on shutdown) and we do not want to track that as |
145 // a real modification. | 148 // a real modification. |
146 ModificationCallback modification_callback_; | 149 ModificationCallback modification_callback_; |
147 | 150 |
148 DISALLOW_COPY_AND_ASSIGN(ExtensionSet); | 151 DISALLOW_COPY_AND_ASSIGN(ExtensionSet); |
149 }; | 152 }; |
150 | 153 |
151 } // namespace extensions | 154 } // namespace extensions |
152 | 155 |
153 #endif // EXTENSIONS_COMMON_EXTENSION_SET_H_ | 156 #endif // EXTENSIONS_COMMON_EXTENSION_SET_H_ |
OLD | NEW |