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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef DOMWrapperWorld_h | 31 #ifndef DOMWrapperWorld_h |
32 #define DOMWrapperWorld_h | 32 #define DOMWrapperWorld_h |
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" | |
41 #include <v8.h> | 40 #include <v8.h> |
42 | 41 |
43 namespace blink { | 42 namespace blink { |
44 | 43 |
45 class DOMDataStore; | 44 class DOMDataStore; |
46 class ExecutionContext; | |
47 class ScriptController; | |
48 | 45 |
49 enum WorldIdConstants { | 46 enum WorldIdConstants { |
50 MainWorldId = 0, | 47 MainWorldId = 0, |
51 // Embedder isolated worlds can use IDs in [1, 1<<29). | 48 // Embedder isolated worlds can use IDs in [1, 1<<29). |
52 EmbedderWorldIdLimit = (1 << 29), | 49 EmbedderWorldIdLimit = (1 << 29), |
53 ScriptPreprocessorIsolatedWorldId, | 50 ScriptPreprocessorIsolatedWorldId, |
54 PrivateScriptIsolatedWorldId, | 51 PrivateScriptIsolatedWorldId, |
55 IsolatedWorldIdLimit, | 52 IsolatedWorldIdLimit, |
56 WorkerWorldId, | 53 WorkerWorldId, |
57 TestingWorldId, | 54 TestingWorldId, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 184 |
188 const int m_worldId; | 185 const int m_worldId; |
189 const int m_extensionGroup; | 186 const int m_extensionGroup; |
190 OwnPtr<DOMDataStore> m_domDataStore; | 187 OwnPtr<DOMDataStore> m_domDataStore; |
191 HashSet<OwnPtr<DOMObjectHolderBase> > m_domObjectHolders; | 188 HashSet<OwnPtr<DOMObjectHolderBase> > m_domObjectHolders; |
192 }; | 189 }; |
193 | 190 |
194 } // namespace blink | 191 } // namespace blink |
195 | 192 |
196 #endif // DOMWrapperWorld_h | 193 #endif // DOMWrapperWorld_h |
OLD | NEW |