OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class DOMDataStore; | 45 class DOMDataStore; |
46 | 46 |
47 enum WorldIdConstants { | 47 enum WorldIdConstants { |
48 MainWorldId = 0, | 48 MainWorldId = 0, |
49 // Embedder isolated worlds can use IDs in [1, 1<<29). | 49 // Embedder isolated worlds can use IDs in [1, 1<<29). |
50 EmbedderWorldIdLimit = (1 << 29), | 50 EmbedderWorldIdLimit = (1 << 29), |
51 PrivateScriptIsolatedWorldId, | 51 PrivateScriptIsolatedWorldId, |
| 52 DocumentXMLTreeViewerWorldId, |
52 IsolatedWorldIdLimit, | 53 IsolatedWorldIdLimit, |
53 WorkerWorldId, | 54 WorkerWorldId, |
54 TestingWorldId, | 55 TestingWorldId, |
55 }; | 56 }; |
56 | 57 |
57 class DOMObjectHolderBase; | 58 class DOMObjectHolderBase; |
58 | 59 |
59 // This class represent a collection of DOM wrappers for a specific world. | 60 // This class represent a collection of DOM wrappers for a specific world. |
60 class CORE_EXPORT DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { | 61 class CORE_EXPORT DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { |
61 public: | 62 public: |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 146 |
146 const int m_worldId; | 147 const int m_worldId; |
147 const int m_extensionGroup; | 148 const int m_extensionGroup; |
148 std::unique_ptr<DOMDataStore> m_domDataStore; | 149 std::unique_ptr<DOMDataStore> m_domDataStore; |
149 HashSet<std::unique_ptr<DOMObjectHolderBase>> m_domObjectHolders; | 150 HashSet<std::unique_ptr<DOMObjectHolderBase>> m_domObjectHolders; |
150 }; | 151 }; |
151 | 152 |
152 } // namespace blink | 153 } // namespace blink |
153 | 154 |
154 #endif // DOMWrapperWorld_h | 155 #endif // DOMWrapperWorld_h |
OLD | NEW |