| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "core/html/parser/HTMLParserThread.h" | 6 #include "sky/engine/core/html/parser/HTMLParserThread.h" |
| 7 | 7 |
| 8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
| 9 #include "wtf/Assertions.h" | 9 #include "sky/engine/wtf/Assertions.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 static base::Thread* s_thread = 0; | 13 static base::Thread* s_thread = 0; |
| 14 static base::SingleThreadTaskRunner* s_taskRunner = 0; | 14 static base::SingleThreadTaskRunner* s_taskRunner = 0; |
| 15 | 15 |
| 16 void HTMLParserThread::start() | 16 void HTMLParserThread::start() |
| 17 { | 17 { |
| 18 ASSERT(!s_thread); | 18 ASSERT(!s_thread); |
| 19 s_thread = new base::Thread("HTMLParserThread"); | 19 s_thread = new base::Thread("HTMLParserThread"); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 34 taskRunner = nullptr; | 34 taskRunner = nullptr; |
| 35 } | 35 } |
| 36 | 36 |
| 37 base::SingleThreadTaskRunner* HTMLParserThread::taskRunner() | 37 base::SingleThreadTaskRunner* HTMLParserThread::taskRunner() |
| 38 { | 38 { |
| 39 ASSERT(s_taskRunner); | 39 ASSERT(s_taskRunner); |
| 40 return s_taskRunner; | 40 return s_taskRunner; |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace blink | 43 } // namespace blink |
| OLD | NEW |