| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 WorkerEventQueue* getEventQueue() const final; | 118 WorkerEventQueue* getEventQueue() const final; |
| 119 SecurityContext& securityContext() final { return *this; } | 119 SecurityContext& securityContext() final { return *this; } |
| 120 | 120 |
| 121 bool isContextThread() const final; | 121 bool isContextThread() const final; |
| 122 bool isJSExecutionForbidden() const final; | 122 bool isJSExecutionForbidden() const final; |
| 123 | 123 |
| 124 DOMTimerCoordinator* timers() final; | 124 DOMTimerCoordinator* timers() final; |
| 125 | 125 |
| 126 WorkerInspectorController* workerInspectorController() { return m_workerInsp
ectorController.get(); } | 126 WorkerInspectorController* workerInspectorController() { return m_workerInsp
ectorController.get(); } |
| 127 | 127 |
| 128 bool isClosing() { return m_closing; } | 128 // Returns true when the WorkerGlobalScope is closing (e.g. via close() |
| 129 // method). If this returns true, the worker is going to be shutdown after |
| 130 // the current task execution. Workers that don't support close operation |
| 131 // should always return false. |
| 132 bool isClosing() const { return m_closing; } |
| 129 | 133 |
| 130 double timeOrigin() const { return m_timeOrigin; } | 134 double timeOrigin() const { return m_timeOrigin; } |
| 131 | 135 |
| 132 WorkerClients* clients() { return m_workerClients.get(); } | 136 WorkerClients* clients() { return m_workerClients.get(); } |
| 133 | 137 |
| 134 using SecurityContext::getSecurityOrigin; | 138 using SecurityContext::getSecurityOrigin; |
| 135 using SecurityContext::contentSecurityPolicy; | 139 using SecurityContext::contentSecurityPolicy; |
| 136 | 140 |
| 137 void addConsoleMessage(ConsoleMessage*) final; | 141 void addConsoleMessage(ConsoleMessage*) final; |
| 138 ConsoleMessageStorage* messageStorage(); | 142 ConsoleMessageStorage* messageStorage(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 unsigned long m_workerExceptionUniqueIdentifier; | 204 unsigned long m_workerExceptionUniqueIdentifier; |
| 201 HeapHashMap<unsigned long, Member<ConsoleMessage>> m_pendingMessages; | 205 HeapHashMap<unsigned long, Member<ConsoleMessage>> m_pendingMessages; |
| 202 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; | 206 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; |
| 203 }; | 207 }; |
| 204 | 208 |
| 205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 209 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 206 | 210 |
| 207 } // namespace blink | 211 } // namespace blink |
| 208 | 212 |
| 209 #endif // WorkerGlobalScope_h | 213 #endif // WorkerGlobalScope_h |
| OLD | NEW |