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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
44 #include "wtf/PassOwnPtr.h" | 44 #include "wtf/PassOwnPtr.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class ContextLifecycleNotifier; | 48 class ContextLifecycleNotifier; |
49 class LocalDOMWindow; | 49 class LocalDOMWindow; |
50 class ErrorEvent; | 50 class ErrorEvent; |
51 class EventQueue; | 51 class EventQueue; |
52 class ExecutionContextTask; | 52 class ExecutionContextTask; |
53 class ScriptState; | |
54 class PublicURLManager; | 53 class PublicURLManager; |
55 class SecurityOrigin; | 54 class SecurityOrigin; |
56 class ScriptCallStack; | 55 class ScriptCallStack; |
57 | 56 |
58 class ExecutionContext | 57 class ExecutionContext |
59 : public LifecycleContext<ExecutionContext> | 58 : public LifecycleContext<ExecutionContext> |
60 , public WillBeHeapSupplementable<ExecutionContext> { | 59 , public WillBeHeapSupplementable<ExecutionContext> { |
61 public: | 60 public: |
62 virtual void trace(Visitor*) override; | 61 virtual void trace(Visitor*) override; |
63 | 62 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 171 |
173 // The location of this member is important; to make sure contextDestroyed()
notification on | 172 // The location of this member is important; to make sure contextDestroyed()
notification on |
174 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, | 173 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, |
175 // m_lifecycleNotifer should be placed *after* such members. | 174 // m_lifecycleNotifer should be placed *after* such members. |
176 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 175 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
177 }; | 176 }; |
178 | 177 |
179 } // namespace blink | 178 } // namespace blink |
180 | 179 |
181 #endif // ExecutionContext_h | 180 #endif // ExecutionContext_h |
OLD | NEW |