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