| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 IsolatedWorldIdLimit, | 52 IsolatedWorldIdLimit, |
| 53 WorkerWorldId, | 53 WorkerWorldId, |
| 54 TestingWorldId, | 54 TestingWorldId, |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 class DOMObjectHolderBase; | 57 class DOMObjectHolderBase; |
| 58 template <typename T> | |
| 59 class DOMObjectHolder; | |
| 60 | 58 |
| 61 // This class represent a collection of DOM wrappers for a specific world. | 59 // This class represent a collection of DOM wrappers for a specific world. |
| 62 class CORE_EXPORT DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { | 60 class CORE_EXPORT DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { |
| 63 public: | 61 public: |
| 64 static PassRefPtr<DOMWrapperWorld> create(v8::Isolate*, | 62 static PassRefPtr<DOMWrapperWorld> create(v8::Isolate*, |
| 65 int worldId = -1, | 63 int worldId = -1, |
| 66 int extensionGroup = -1); | 64 int extensionGroup = -1); |
| 67 | 65 |
| 68 static const int mainWorldExtensionGroup = 0; | 66 static const int mainWorldExtensionGroup = 0; |
| 69 static const int privateScriptIsolatedWorldExtensionGroup = 1; | 67 static const int privateScriptIsolatedWorldExtensionGroup = 1; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 145 |
| 148 const int m_worldId; | 146 const int m_worldId; |
| 149 const int m_extensionGroup; | 147 const int m_extensionGroup; |
| 150 std::unique_ptr<DOMDataStore> m_domDataStore; | 148 std::unique_ptr<DOMDataStore> m_domDataStore; |
| 151 HashSet<std::unique_ptr<DOMObjectHolderBase>> m_domObjectHolders; | 149 HashSet<std::unique_ptr<DOMObjectHolderBase>> m_domObjectHolders; |
| 152 }; | 150 }; |
| 153 | 151 |
| 154 } // namespace blink | 152 } // namespace blink |
| 155 | 153 |
| 156 #endif // DOMWrapperWorld_h | 154 #endif // DOMWrapperWorld_h |
| OLD | NEW |