| 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 EXTENSIONS_BROWSER_API_DECLARATIVE_DEDUPING_FACTORY_H__ | 5 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_DEDUPING_FACTORY_H__ |
| 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_DEDUPING_FACTORY_H__ | 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_DEDUPING_FACTORY_H__ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <list> | 10 #include <list> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 13 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 15 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 16 | 19 |
| 17 namespace base { | 20 namespace base { |
| 18 class Value; | 21 class Value; |
| 19 } // namespace base | 22 } // namespace base |
| 20 | 23 |
| 21 namespace extensions { | 24 namespace extensions { |
| 22 | 25 |
| 23 // Factory class that stores a cache of the last |N| created objects of each | 26 // Factory class that stores a cache of the last |N| created objects of each |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 173 } |
| 171 | 174 |
| 172 template<typename BaseClassT> | 175 template<typename BaseClassT> |
| 173 void DedupingFactory<BaseClassT>::ClearPrototypes() { | 176 void DedupingFactory<BaseClassT>::ClearPrototypes() { |
| 174 prototypes_.clear(); | 177 prototypes_.clear(); |
| 175 } | 178 } |
| 176 | 179 |
| 177 } // namespace extensions | 180 } // namespace extensions |
| 178 | 181 |
| 179 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_DEDUPING_FACTORY_H__ | 182 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_DEDUPING_FACTORY_H__ |
| OLD | NEW |