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_RENDERER_RENDERER_EXTENSION_REGISTRY_H_ | 5 #ifndef EXTENSIONS_RENDERER_RENDERER_EXTENSION_REGISTRY_H_ |
6 #define EXTENSIONS_RENDERER_RENDERER_EXTENSION_REGISTRY_H_ | 6 #define EXTENSIONS_RENDERER_RENDERER_EXTENSION_REGISTRY_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
| 12 #include "base/macros.h" |
10 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
11 #include "extensions/common/extension_set.h" | 14 #include "extensions/common/extension_set.h" |
12 | 15 |
13 class GURL; | 16 class GURL; |
14 | 17 |
15 namespace extensions { | 18 namespace extensions { |
16 | 19 |
17 // Thread safe container for all loaded extensions in this process, | 20 // Thread safe container for all loaded extensions in this process, |
18 // essentially the renderer counterpart to ExtensionRegistry. | 21 // essentially the renderer counterpart to ExtensionRegistry. |
19 class RendererExtensionRegistry { | 22 class RendererExtensionRegistry { |
(...skipping 30 matching lines...) Expand all Loading... |
50 ExtensionSet extensions_; | 53 ExtensionSet extensions_; |
51 | 54 |
52 mutable base::Lock lock_; | 55 mutable base::Lock lock_; |
53 | 56 |
54 DISALLOW_COPY_AND_ASSIGN(RendererExtensionRegistry); | 57 DISALLOW_COPY_AND_ASSIGN(RendererExtensionRegistry); |
55 }; | 58 }; |
56 | 59 |
57 } // namespace extensions | 60 } // namespace extensions |
58 | 61 |
59 #endif // EXTENSIONS_RENDERER_RENDERER_EXTENSION_REGISTRY_H_ | 62 #endif // EXTENSIONS_RENDERER_RENDERER_EXTENSION_REGISTRY_H_ |
OLD | NEW |