OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 13 matching lines...) Expand all Loading... |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef ScriptExecutionContext_h | 28 #ifndef ScriptExecutionContext_h |
29 #define ScriptExecutionContext_h | 29 #define ScriptExecutionContext_h |
30 | 30 |
31 #include "ActiveDOMObject.h" | 31 #include "ActiveDOMObject.h" |
32 #include "ConsoleTypes.h" | 32 #include "ConsoleTypes.h" |
33 #include "KURL.h" | 33 #include "KURL.h" |
34 #include "ScriptCallStack.h" | |
35 #include "ScriptState.h" | |
36 #include "SecurityContext.h" | 34 #include "SecurityContext.h" |
37 #include "Supplementable.h" | 35 #include "Supplementable.h" |
38 #include <wtf/Forward.h> | 36 #include <wtf/Forward.h> |
39 #include <wtf/HashSet.h> | 37 #include <wtf/HashSet.h> |
40 #include <wtf/Noncopyable.h> | 38 #include <wtf/Noncopyable.h> |
41 #include <wtf/OwnPtr.h> | 39 #include <wtf/OwnPtr.h> |
42 #include <wtf/PassOwnPtr.h> | |
43 #include <wtf/Threading.h> | |
44 #include <wtf/text/StringHash.h> | |
45 | 40 |
46 namespace WebCore { | 41 namespace WebCore { |
47 | 42 |
48 class CachedScript; | 43 class CachedScript; |
49 class DatabaseContext; | 44 class DatabaseContext; |
50 class DOMTimer; | 45 class DOMTimer; |
51 class EventListener; | 46 class EventListener; |
52 class EventQueue; | 47 class EventQueue; |
53 class EventTarget; | 48 class EventTarget; |
54 class MessagePort; | 49 class MessagePort; |
55 class PublicURLManager; | 50 class PublicURLManager; |
| 51 class ScriptCallStack; |
| 52 class ScriptState; |
56 | 53 |
57 class ScriptExecutionContext : public SecurityContext, public Supplementable<Scr
iptExecutionContext> { | 54 class ScriptExecutionContext : public SecurityContext, public Supplementable<Scr
iptExecutionContext> { |
58 public: | 55 public: |
59 ScriptExecutionContext(); | 56 ScriptExecutionContext(); |
60 virtual ~ScriptExecutionContext(); | 57 virtual ~ScriptExecutionContext(); |
61 | 58 |
62 virtual bool isDocument() const { return false; } | 59 virtual bool isDocument() const { return false; } |
63 virtual bool isWorkerContext() const { return false; } | 60 virtual bool isWorkerContext() const { return false; } |
64 | 61 |
65 virtual bool isContextThread() const { return true; } | 62 virtual bool isContextThread() const { return true; } |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 bool m_activeDOMObjectsAreStopped; | 202 bool m_activeDOMObjectsAreStopped; |
206 | 203 |
207 OwnPtr<PublicURLManager> m_publicURLManager; | 204 OwnPtr<PublicURLManager> m_publicURLManager; |
208 | 205 |
209 RefPtr<DatabaseContext> m_databaseContext; | 206 RefPtr<DatabaseContext> m_databaseContext; |
210 }; | 207 }; |
211 | 208 |
212 } // namespace WebCore | 209 } // namespace WebCore |
213 | 210 |
214 #endif // ScriptExecutionContext_h | 211 #endif // ScriptExecutionContext_h |
OLD | NEW |