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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 bool WorkerGlobalScope::idleNotification() | 315 bool WorkerGlobalScope::idleNotification() |
316 { | 316 { |
317 return script()->idleNotification(); | 317 return script()->idleNotification(); |
318 } | 318 } |
319 | 319 |
320 WorkerEventQueue* WorkerGlobalScope::eventQueue() const | 320 WorkerEventQueue* WorkerGlobalScope::eventQueue() const |
321 { | 321 { |
322 return m_eventQueue.get(); | 322 return m_eventQueue.get(); |
323 } | 323 } |
324 | 324 |
| 325 void WorkerGlobalScope::countFeature(UseCounter::Feature) const |
| 326 { |
| 327 // FIXME: How should we count features for shared/service workers? |
| 328 } |
| 329 |
325 void WorkerGlobalScope::trace(Visitor* visitor) | 330 void WorkerGlobalScope::trace(Visitor* visitor) |
326 { | 331 { |
327 visitor->trace(m_console); | 332 visitor->trace(m_console); |
328 visitor->trace(m_location); | 333 visitor->trace(m_location); |
329 visitor->trace(m_navigator); | 334 visitor->trace(m_navigator); |
330 visitor->trace(m_eventQueue); | 335 visitor->trace(m_eventQueue); |
331 visitor->trace(m_workerClients); | 336 visitor->trace(m_workerClients); |
332 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); | 337 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); |
333 ExecutionContext::trace(visitor); | 338 ExecutionContext::trace(visitor); |
334 EventTargetWithInlineData::trace(visitor); | 339 EventTargetWithInlineData::trace(visitor); |
335 } | 340 } |
336 | 341 |
337 } // namespace WebCore | 342 } // namespace WebCore |
OLD | NEW |