Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: Source/core/workers/WorkerGlobalScope.cpp

Issue 1101583003: compositor-worker: Restrict the global interface in CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 void WorkerGlobalScope::countFeature(UseCounter::Feature) const 334 void WorkerGlobalScope::countFeature(UseCounter::Feature) const
335 { 335 {
336 // FIXME: How should we count features for shared/service workers? 336 // FIXME: How should we count features for shared/service workers?
337 } 337 }
338 338
339 void WorkerGlobalScope::countDeprecation(UseCounter::Feature feature) const 339 void WorkerGlobalScope::countDeprecation(UseCounter::Feature feature) const
340 { 340 {
341 // FIXME: How should we count features for shared/service workers? 341 // FIXME: How should we count features for shared/service workers?
342 342
343 ASSERT(isSharedWorkerGlobalScope() || isServiceWorkerGlobalScope()); 343 ASSERT(isSharedWorkerGlobalScope() || isServiceWorkerGlobalScope() || isComp ositorWorkerGlobalScope());
344 // For each deprecated feature, send console message at most once 344 // For each deprecated feature, send console message at most once
345 // per worker lifecycle. 345 // per worker lifecycle.
346 if (!m_deprecationWarningBits.hasRecordedMeasurement(feature)) { 346 if (!m_deprecationWarningBits.hasRecordedMeasurement(feature)) {
347 m_deprecationWarningBits.recordMeasurement(feature); 347 m_deprecationWarningBits.recordMeasurement(feature);
348 ASSERT(!UseCounter::deprecationMessage(feature).isEmpty()); 348 ASSERT(!UseCounter::deprecationMessage(feature).isEmpty());
349 ASSERT(executionContext()); 349 ASSERT(executionContext());
350 executionContext()->addConsoleMessage(ConsoleMessage::create(Deprecation MessageSource, WarningMessageLevel, UseCounter::deprecationMessage(feature))); 350 executionContext()->addConsoleMessage(ConsoleMessage::create(Deprecation MessageSource, WarningMessageLevel, UseCounter::deprecationMessage(feature)));
351 } 351 }
352 } 352 }
353 353
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 visitor->trace(m_timers); 410 visitor->trace(m_timers);
411 visitor->trace(m_messageStorage); 411 visitor->trace(m_messageStorage);
412 visitor->trace(m_pendingMessages); 412 visitor->trace(m_pendingMessages);
413 HeapSupplementable<WorkerGlobalScope>::trace(visitor); 413 HeapSupplementable<WorkerGlobalScope>::trace(visitor);
414 #endif 414 #endif
415 ExecutionContext::trace(visitor); 415 ExecutionContext::trace(visitor);
416 EventTargetWithInlineData::trace(visitor); 416 EventTargetWithInlineData::trace(visitor);
417 } 417 }
418 418
419 } // namespace blink 419 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/CompositorProxy.idl ('k') | Source/modules/compositorworker/CompositorWorkerGlobalScope.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698