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 <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 // The one true extension container. Extensions are identified by their id. | 20 // The one true extension container. Extensions are identified by their id. |
21 // Only one extension can be in the set with a given ID. | 21 // Only one extension can be in the set with a given ID. |
22 class ExtensionSet { | 22 class ExtensionSet { |
(...skipping 121 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 | 144 // discarding the set (e.g., on shutdown) and we do not want to track that as |
145 // a real modification. | 145 // a real modification. |
146 ModificationCallback modification_callback_; | 146 ModificationCallback modification_callback_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(ExtensionSet); | 148 DISALLOW_COPY_AND_ASSIGN(ExtensionSet); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace extensions | 151 } // namespace extensions |
152 | 152 |
153 #endif // EXTENSIONS_COMMON_EXTENSION_SET_H_ | 153 #endif // EXTENSIONS_COMMON_EXTENSION_SET_H_ |
OLD | NEW |