Chromium Code Reviews| Index: third_party/WebKit/Source/platform/WebThreadSupportingGC.h |
| diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h |
| index 598afe5a3d06d819fd29a02f198b40e0342469a1..f633c856b4dfa23b68443d774774e76bcd57e1e3 100644 |
| --- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h |
| +++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h |
| @@ -28,8 +28,8 @@ class PLATFORM_EXPORT WebThreadSupportingGC final { |
| USING_FAST_MALLOC(WebThreadSupportingGC); |
| WTF_MAKE_NONCOPYABLE(WebThreadSupportingGC); |
| public: |
| - static std::unique_ptr<WebThreadSupportingGC> create(const char* name, bool perThreadHeapEnabled = false); |
| - static std::unique_ptr<WebThreadSupportingGC> createForThread(WebThread*, bool perThreadHeapEnabled = false); |
| + static std::unique_ptr<WebThreadSupportingGC> create(const char* name, ThreadHeapMode); |
| + static std::unique_ptr<WebThreadSupportingGC> createForThread(WebThread*, ThreadHeapMode); |
| ~WebThreadSupportingGC(); |
| void postTask(const WebTraceLocation& location, std::unique_ptr<WTF::Closure> task) |
| @@ -77,7 +77,7 @@ public: |
| } |
| private: |
| - WebThreadSupportingGC(const char* name, WebThread*, bool perThreadHeapEnabled); |
| + WebThreadSupportingGC(const char* name, WebThread*, ThreadHeapMode); |
| std::unique_ptr<GCTaskRunner> m_gcTaskRunner; |
| @@ -86,7 +86,7 @@ private: |
| // existing thread via createForThread(). |
| WebThread* m_thread = nullptr; |
| std::unique_ptr<WebThread> m_owningThread; |
| - bool m_perThreadHeapEnabled; |
| + ThreadHeapMode m_threadHeapMode; |
|
nhiroki
2016/09/21 05:15:26
const?
keishi
2016/09/21 07:06:37
Done.
|
| }; |
| } // namespace blink |