| 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 | 315 |
| 316 void WorkerGlobalScope::countFeature(UseCounter::Feature) const | 316 void WorkerGlobalScope::countFeature(UseCounter::Feature) const |
| 317 { | 317 { |
| 318 // FIXME: How should we count features for shared/service workers? | 318 // FIXME: How should we count features for shared/service workers? |
| 319 } | 319 } |
| 320 | 320 |
| 321 void WorkerGlobalScope::countDeprecation(UseCounter::Feature feature) const | 321 void WorkerGlobalScope::countDeprecation(UseCounter::Feature feature) const |
| 322 { | 322 { |
| 323 // FIXME: How should we count features for shared/service workers? | 323 // FIXME: How should we count features for shared/service workers? |
| 324 | 324 |
| 325 ASSERT(isSharedWorkerGlobalScope() || isServiceWorkerGlobalScope()); | 325 ASSERT(isSharedWorkerGlobalScope() || isServiceWorkerGlobalScope() || isComp
ositorWorkerGlobalScope()); |
| 326 // For each deprecated feature, send console message at most once | 326 // For each deprecated feature, send console message at most once |
| 327 // per worker lifecycle. | 327 // per worker lifecycle. |
| 328 if (!m_deprecationWarningBits.hasRecordedMeasurement(feature)) { | 328 if (!m_deprecationWarningBits.hasRecordedMeasurement(feature)) { |
| 329 m_deprecationWarningBits.recordMeasurement(feature); | 329 m_deprecationWarningBits.recordMeasurement(feature); |
| 330 ASSERT(!UseCounter::deprecationMessage(feature).isEmpty()); | 330 ASSERT(!UseCounter::deprecationMessage(feature).isEmpty()); |
| 331 ASSERT(executionContext()); | 331 ASSERT(executionContext()); |
| 332 executionContext()->addConsoleMessage(ConsoleMessage::create(Deprecation
MessageSource, WarningMessageLevel, UseCounter::deprecationMessage(feature))); | 332 executionContext()->addConsoleMessage(ConsoleMessage::create(Deprecation
MessageSource, WarningMessageLevel, UseCounter::deprecationMessage(feature))); |
| 333 } | 333 } |
| 334 } | 334 } |
| 335 | 335 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 visitor->trace(m_timers); | 392 visitor->trace(m_timers); |
| 393 visitor->trace(m_messageStorage); | 393 visitor->trace(m_messageStorage); |
| 394 visitor->trace(m_pendingMessages); | 394 visitor->trace(m_pendingMessages); |
| 395 HeapSupplementable<WorkerGlobalScope>::trace(visitor); | 395 HeapSupplementable<WorkerGlobalScope>::trace(visitor); |
| 396 #endif | 396 #endif |
| 397 ExecutionContext::trace(visitor); | 397 ExecutionContext::trace(visitor); |
| 398 EventTargetWithInlineData::trace(visitor); | 398 EventTargetWithInlineData::trace(visitor); |
| 399 } | 399 } |
| 400 | 400 |
| 401 } // namespace blink | 401 } // namespace blink |
| OLD | NEW |