OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) final; | 113 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) final; |
114 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn
fo*, v8::Local<v8::Object> wrapper) final; | 114 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn
fo*, v8::Local<v8::Object> wrapper) final; |
115 | 115 |
116 // ExecutionContextClient | 116 // ExecutionContextClient |
117 WorkerEventQueue* eventQueue() const final; | 117 WorkerEventQueue* eventQueue() const final; |
118 SecurityContext& securityContext() final { return *this; } | 118 SecurityContext& securityContext() final { return *this; } |
119 | 119 |
120 bool isContextThread() const final; | 120 bool isContextThread() const final; |
121 bool isJSExecutionForbidden() const final; | 121 bool isJSExecutionForbidden() const final; |
122 | 122 |
123 double timerAlignmentInterval() const final; | |
124 DOMTimerCoordinator* timers() final; | 123 DOMTimerCoordinator* timers() final; |
125 | 124 |
126 WorkerInspectorController* workerInspectorController() { return m_workerInsp
ectorController.get(); } | 125 WorkerInspectorController* workerInspectorController() { return m_workerInsp
ectorController.get(); } |
127 | 126 |
128 bool isClosing() { return m_closing; } | 127 bool isClosing() { return m_closing; } |
129 | 128 |
130 double timeOrigin() const { return m_timeOrigin; } | 129 double timeOrigin() const { return m_timeOrigin; } |
131 | 130 |
132 WorkerClients* clients() { return m_workerClients.get(); } | 131 WorkerClients* clients() { return m_workerClients.get(); } |
133 | 132 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 unsigned long m_workerExceptionUniqueIdentifier; | 205 unsigned long m_workerExceptionUniqueIdentifier; |
207 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; | 206 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; |
208 WillBeHeapListHashSet<RefPtrWillBeMember<V8AbstractEventListener>> m_eventLi
steners; | 207 WillBeHeapListHashSet<RefPtrWillBeMember<V8AbstractEventListener>> m_eventLi
steners; |
209 }; | 208 }; |
210 | 209 |
211 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 210 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
212 | 211 |
213 } // namespace blink | 212 } // namespace blink |
214 | 213 |
215 #endif // WorkerGlobalScope_h | 214 #endif // WorkerGlobalScope_h |
OLD | NEW |