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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "bindings/core/v8/ScriptState.h" | 34 #include "bindings/core/v8/ScriptState.h" |
35 #include "platform/weborigin/SecurityOrigin.h" | 35 #include "platform/weborigin/SecurityOrigin.h" |
36 #include "wtf/MainThread.h" | 36 #include "wtf/MainThread.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 #include <v8.h> | 41 #include <v8.h> |
42 | 42 |
43 namespace WebCore { | 43 namespace blink { |
44 | 44 |
45 class DOMDataStore; | 45 class DOMDataStore; |
46 class ExecutionContext; | 46 class ExecutionContext; |
47 class ScriptController; | 47 class ScriptController; |
48 | 48 |
49 enum WorldIdConstants { | 49 enum WorldIdConstants { |
50 MainWorldId = 0, | 50 MainWorldId = 0, |
51 // Embedder isolated worlds can use IDs in [1, 1<<29). | 51 // Embedder isolated worlds can use IDs in [1, 1<<29). |
52 EmbedderWorldIdLimit = (1 << 29), | 52 EmbedderWorldIdLimit = (1 << 29), |
53 ScriptPreprocessorIsolatedWorldId, | 53 ScriptPreprocessorIsolatedWorldId, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 DOMWrapperWorld(int worldId, int extensionGroup); | 129 DOMWrapperWorld(int worldId, int extensionGroup); |
130 | 130 |
131 static unsigned isolatedWorldCount; | 131 static unsigned isolatedWorldCount; |
132 static DOMWrapperWorld* worldOfInitializingWindow; | 132 static DOMWrapperWorld* worldOfInitializingWindow; |
133 | 133 |
134 const int m_worldId; | 134 const int m_worldId; |
135 const int m_extensionGroup; | 135 const int m_extensionGroup; |
136 OwnPtr<DOMDataStore> m_domDataStore; | 136 OwnPtr<DOMDataStore> m_domDataStore; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace WebCore | 139 } // namespace blink |
140 | 140 |
141 #endif // DOMWrapperWorld_h | 141 #endif // DOMWrapperWorld_h |
OLD | NEW |