| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 WorkerInspectorController* workerInspectorController() { return m_worker
InspectorController.get(); } | 123 WorkerInspectorController* workerInspectorController() { return m_worker
InspectorController.get(); } |
| 124 // These methods are used for GC marking. See JSWorkerGlobalScope::visit
ChildrenVirtual(SlotVisitor&) in | 124 // These methods are used for GC marking. See JSWorkerGlobalScope::visit
ChildrenVirtual(SlotVisitor&) in |
| 125 // JSWorkerGlobalScopeCustom.cpp. | 125 // JSWorkerGlobalScopeCustom.cpp. |
| 126 WorkerConsole* optionalConsole() const { return m_console.get(); } | 126 WorkerConsole* optionalConsole() const { return m_console.get(); } |
| 127 WorkerNavigator* optionalNavigator() const { return m_navigator.get(); } | 127 WorkerNavigator* optionalNavigator() const { return m_navigator.get(); } |
| 128 WorkerLocation* optionalLocation() const { return m_location.get(); } | 128 WorkerLocation* optionalLocation() const { return m_location.get(); } |
| 129 | 129 |
| 130 bool isClosing() { return m_closing; } | 130 bool isClosing() { return m_closing; } |
| 131 | 131 |
| 132 virtual void stopFetch() { } |
| 133 |
| 132 bool idleNotification(); | 134 bool idleNotification(); |
| 133 | 135 |
| 134 double timeOrigin() const { return m_timeOrigin; } | 136 double timeOrigin() const { return m_timeOrigin; } |
| 135 | 137 |
| 136 WorkerClients* clients() { return m_workerClients.get(); } | 138 WorkerClients* clients() { return m_workerClients.get(); } |
| 137 | 139 |
| 138 using SecurityContext::securityOrigin; | 140 using SecurityContext::securityOrigin; |
| 139 using SecurityContext::contentSecurityPolicy; | 141 using SecurityContext::contentSecurityPolicy; |
| 140 | 142 |
| 141 virtual void trace(Visitor*) OVERRIDE; | 143 virtual void trace(Visitor*) OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 183 |
| 182 double m_timeOrigin; | 184 double m_timeOrigin; |
| 183 TerminationObserver* m_terminationObserver; | 185 TerminationObserver* m_terminationObserver; |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 188 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 187 | 189 |
| 188 } // namespace WebCore | 190 } // namespace WebCore |
| 189 | 191 |
| 190 #endif // WorkerGlobalScope_h | 192 #endif // WorkerGlobalScope_h |
| OLD | NEW |