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

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

Issue 1922923003: Have MessagePort use Oilpan-based weak pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 29 matching lines...) Expand all
40 #include "platform/ThreadSafeFunctional.h" 40 #include "platform/ThreadSafeFunctional.h"
41 #include "platform/WaitableEvent.h" 41 #include "platform/WaitableEvent.h"
42 #include "platform/WebThreadSupportingGC.h" 42 #include "platform/WebThreadSupportingGC.h"
43 #include "platform/heap/SafePoint.h" 43 #include "platform/heap/SafePoint.h"
44 #include "platform/heap/ThreadState.h" 44 #include "platform/heap/ThreadState.h"
45 #include "platform/weborigin/KURL.h" 45 #include "platform/weborigin/KURL.h"
46 #include "public/platform/WebScheduler.h" 46 #include "public/platform/WebScheduler.h"
47 #include "public/platform/WebThread.h" 47 #include "public/platform/WebThread.h"
48 #include "wtf/Functional.h" 48 #include "wtf/Functional.h"
49 #include "wtf/Noncopyable.h" 49 #include "wtf/Noncopyable.h"
50 #include "wtf/WeakPtr.h"
51 #include "wtf/text/WTFString.h" 50 #include "wtf/text/WTFString.h"
52 #include <limits.h> 51 #include <limits.h>
53 52
54 namespace blink { 53 namespace blink {
55 54
56 class WorkerMicrotaskRunner : public WebThread::TaskObserver { 55 class WorkerMicrotaskRunner : public WebThread::TaskObserver {
57 public: 56 public:
58 explicit WorkerMicrotaskRunner(WorkerThread* workerThread) 57 explicit WorkerMicrotaskRunner(WorkerThread* workerThread)
59 : m_workerThread(workerThread) 58 : m_workerThread(workerThread)
60 { 59 {
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } while (task && m_pausedInDebugger); 450 } while (task && m_pausedInDebugger);
452 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get()); 451 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get());
453 } 452 }
454 453
455 void WorkerThread::stopRunningDebuggerTasksOnPause() 454 void WorkerThread::stopRunningDebuggerTasksOnPause()
456 { 455 {
457 m_pausedInDebugger = false; 456 m_pausedInDebugger = false;
458 } 457 }
459 458
460 } // namespace blink 459 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698