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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerBackingThread.h

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Rebase only Created 4 years, 2 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WorkerBackingThread_h 5 #ifndef WorkerBackingThread_h
6 #define WorkerBackingThread_h 6 #define WorkerBackingThread_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/ThreadState.h" 9 #include "platform/heap/ThreadState.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return *m_backingThread; 62 return *m_backingThread;
63 } 63 }
64 64
65 v8::Isolate* isolate() { return m_isolate; } 65 v8::Isolate* isolate() { return m_isolate; }
66 66
67 static void MemoryPressureNotificationToWorkerThreadIsolates( 67 static void MemoryPressureNotificationToWorkerThreadIsolates(
68 v8::MemoryPressureLevel); 68 v8::MemoryPressureLevel);
69 69
70 static void setRAILModeOnWorkerThreadIsolates(v8::RAILMode); 70 static void setRAILModeOnWorkerThreadIsolates(v8::RAILMode);
71 71
72 static void PostTaskToAllThreads(const base::Closure& closure);
blundell 2016/10/11 11:29:06 Do the WorkerBackingThreads correspond exactly to
blundell 2016/10/11 11:29:06 Could we reuse WorkerThread::workerThread() instea
leonhsl(Using Gerrit) 2016/10/12 03:55:55 Seems multiple blink::WorkerThread correspond with
leonhsl(Using Gerrit) 2016/10/12 03:55:55 Yeah this has exactly the same effect with content
nhiroki 2016/10/12 06:20:20 (This is not related to this CL and this looks lik
nhiroki 2016/10/12 06:32:46 Filed an issue: https://bugs.chromium.org/p/chromi
73
72 private: 74 private:
73 WorkerBackingThread(const char* name, 75 WorkerBackingThread(const char* name,
74 bool shouldCallGCOnShutdown, 76 bool shouldCallGCOnShutdown,
75 BlinkGC::ThreadHeapMode); 77 BlinkGC::ThreadHeapMode);
76 WorkerBackingThread(WebThread*, bool shouldCallGCOnSHutdown); 78 WorkerBackingThread(WebThread*, bool shouldCallGCOnSHutdown);
77 79
78 std::unique_ptr<WebThreadSupportingGC> m_backingThread; 80 std::unique_ptr<WebThreadSupportingGC> m_backingThread;
79 v8::Isolate* m_isolate = nullptr; 81 v8::Isolate* m_isolate = nullptr;
80 bool m_isOwningThread; 82 bool m_isOwningThread;
81 bool m_shouldCallGCOnShutdown; 83 bool m_shouldCallGCOnShutdown;
82 }; 84 };
83 85
84 } // namespace blink 86 } // namespace blink
85 87
86 #endif // WorkerBackingThread_h 88 #endif // WorkerBackingThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698