OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 |
11 namespace base { | 13 namespace base { |
12 template <typename T> | 14 template <typename T> |
13 struct DefaultSingletonTraits; | 15 struct DefaultSingletonTraits; |
14 } // namespace base | 16 } // namespace base |
15 | 17 |
16 namespace content { | 18 namespace content { |
17 | 19 |
18 // A class which generates a unique id given a process id and frame routing id. | 20 // A class which generates a unique id given a process id and frame routing id. |
19 class AXTreeIDRegistry { | 21 class AXTreeIDRegistry { |
20 public: | 22 public: |
(...skipping 26 matching lines...) Expand all Loading... |
47 | 49 |
48 // Maps frames to an accessibility tree via ids. | 50 // Maps frames to an accessibility tree via ids. |
49 std::map<FrameID, AXTreeID> frame_to_ax_tree_id_map_; | 51 std::map<FrameID, AXTreeID> frame_to_ax_tree_id_map_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(AXTreeIDRegistry); | 53 DISALLOW_COPY_AND_ASSIGN(AXTreeIDRegistry); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace content | 56 } // namespace content |
55 | 57 |
56 #endif // CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_ | 58 #endif // CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_ |
OLD | NEW |