| 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) 2009, 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009, 2011 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 WorkerLocation* WorkerGlobalScope::location() const | 153 WorkerLocation* WorkerGlobalScope::location() const |
| 154 { | 154 { |
| 155 if (!m_location) | 155 if (!m_location) |
| 156 m_location = WorkerLocation::create(m_url); | 156 m_location = WorkerLocation::create(m_url); |
| 157 return m_location.get(); | 157 return m_location.get(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void WorkerGlobalScope::close() | 160 void WorkerGlobalScope::close() |
| 161 { | 161 { |
| 162 // Let current script run to completion, but tell the worker micro task runn
er to tear down the thread after this task. | 162 // Let current script run to completion, but tell the worker micro task |
| 163 // runner to tear down the thread after this task. |
| 163 m_closing = true; | 164 m_closing = true; |
| 164 } | 165 } |
| 165 | 166 |
| 166 WorkerNavigator* WorkerGlobalScope::navigator() const | 167 WorkerNavigator* WorkerGlobalScope::navigator() const |
| 167 { | 168 { |
| 168 if (!m_navigator) | 169 if (!m_navigator) |
| 169 m_navigator = WorkerNavigator::create(m_userAgent); | 170 m_navigator = WorkerNavigator::create(m_userAgent); |
| 170 return m_navigator.get(); | 171 return m_navigator.get(); |
| 171 } | 172 } |
| 172 | 173 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 visitor->trace(m_messageStorage); | 418 visitor->trace(m_messageStorage); |
| 418 visitor->trace(m_pendingMessages); | 419 visitor->trace(m_pendingMessages); |
| 419 visitor->trace(m_eventListeners); | 420 visitor->trace(m_eventListeners); |
| 420 ExecutionContext::trace(visitor); | 421 ExecutionContext::trace(visitor); |
| 421 EventTargetWithInlineData::trace(visitor); | 422 EventTargetWithInlineData::trace(visitor); |
| 422 SecurityContext::trace(visitor); | 423 SecurityContext::trace(visitor); |
| 423 Supplementable<WorkerGlobalScope>::trace(visitor); | 424 Supplementable<WorkerGlobalScope>::trace(visitor); |
| 424 } | 425 } |
| 425 | 426 |
| 426 } // namespace blink | 427 } // namespace blink |
| OLD | NEW |