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

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: tot-merge 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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