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 29 matching lines...) Expand all Loading... |
40 #include <v8.h> | 40 #include <v8.h> |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class DOMDataStore; | 44 class DOMDataStore; |
45 | 45 |
46 enum WorldIdConstants { | 46 enum WorldIdConstants { |
47 MainWorldId = 0, | 47 MainWorldId = 0, |
48 // Embedder isolated worlds can use IDs in [1, 1<<29). | 48 // Embedder isolated worlds can use IDs in [1, 1<<29). |
49 EmbedderWorldIdLimit = (1 << 29), | 49 EmbedderWorldIdLimit = (1 << 29), |
50 ScriptPreprocessorIsolatedWorldId, | |
51 PrivateScriptIsolatedWorldId, | 50 PrivateScriptIsolatedWorldId, |
52 IsolatedWorldIdLimit, | 51 IsolatedWorldIdLimit, |
53 WorkerWorldId, | 52 WorkerWorldId, |
54 TestingWorldId, | 53 TestingWorldId, |
55 }; | 54 }; |
56 | 55 |
57 // This class represent a collection of DOM wrappers for a specific world. | 56 // This class represent a collection of DOM wrappers for a specific world. |
58 class DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { | 57 class DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { |
59 public: | 58 public: |
60 static PassRefPtr<DOMWrapperWorld> create(v8::Isolate*, int worldId = -1, in
t extensionGroup = -1); | 59 static PassRefPtr<DOMWrapperWorld> create(v8::Isolate*, int worldId = -1, in
t extensionGroup = -1); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 183 |
185 const int m_worldId; | 184 const int m_worldId; |
186 const int m_extensionGroup; | 185 const int m_extensionGroup; |
187 OwnPtr<DOMDataStore> m_domDataStore; | 186 OwnPtr<DOMDataStore> m_domDataStore; |
188 HashSet<OwnPtr<DOMObjectHolderBase>> m_domObjectHolders; | 187 HashSet<OwnPtr<DOMObjectHolderBase>> m_domObjectHolders; |
189 }; | 188 }; |
190 | 189 |
191 } // namespace blink | 190 } // namespace blink |
192 | 191 |
193 #endif // DOMWrapperWorld_h | 192 #endif // DOMWrapperWorld_h |
OLD | NEW |