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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 1791053002: Remove unused WorkerThread::postDelayedTask(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 bool WorkerThread::isCurrentThread() 381 bool WorkerThread::isCurrentThread()
382 { 382 {
383 return m_started && backingThread().isCurrentThread(); 383 return m_started && backingThread().isCurrentThread();
384 } 384 }
385 385
386 void WorkerThread::postTask(const WebTraceLocation& location, PassOwnPtr<Executi onContextTask> task) 386 void WorkerThread::postTask(const WebTraceLocation& location, PassOwnPtr<Executi onContextTask> task)
387 { 387 {
388 backingThread().postTask(location, createWorkerThreadTask(task, true)); 388 backingThread().postTask(location, createWorkerThreadTask(task, true));
389 } 389 }
390 390
391 void WorkerThread::postDelayedTask(const WebTraceLocation& location, PassOwnPtr< ExecutionContextTask> task, long long delayMs)
392 {
393 backingThread().postDelayedTask(location, createWorkerThreadTask(task, true) , delayMs);
394 }
395
396 void WorkerThread::initializeBackingThread() 391 void WorkerThread::initializeBackingThread()
397 { 392 {
398 ASSERT(isCurrentThread()); 393 ASSERT(isCurrentThread());
399 backingThread().initialize(); 394 backingThread().initialize();
400 } 395 }
401 396
402 void WorkerThread::shutdownBackingThread() 397 void WorkerThread::shutdownBackingThread()
403 { 398 {
404 ASSERT(isCurrentThread()); 399 ASSERT(isCurrentThread());
405 backingThread().shutdown(); 400 backingThread().shutdown();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } while (task && m_pausedInDebugger); 493 } while (task && m_pausedInDebugger);
499 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get()); 494 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get());
500 } 495 }
501 496
502 void WorkerThread::stopRunningDebuggerTasksOnPause() 497 void WorkerThread::stopRunningDebuggerTasksOnPause()
503 { 498 {
504 m_pausedInDebugger = false; 499 m_pausedInDebugger = false;
505 } 500 }
506 501
507 } // namespace blink 502 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698