| 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 // An implementation of WebThread in terms of base::MessageLoop and | 5 // An implementation of WebThread in terms of base::MessageLoop and |
| 6 // base::Thread | 6 // base::Thread |
| 7 | 7 |
| 8 #include "mojo/services/html_viewer/web_thread_impl.h" | 8 #include "components/html_viewer/web_thread_impl.h" |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/pending_task.h" | 13 #include "base/pending_task.h" |
| 14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 15 #include "third_party/WebKit/public/platform/WebTraceLocation.h" | 15 #include "third_party/WebKit/public/platform/WebTraceLocation.h" |
| 16 | 16 |
| 17 namespace html_viewer { | 17 namespace html_viewer { |
| 18 | 18 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 return message_loop_->BelongsToCurrentThread(); | 178 return message_loop_->BelongsToCurrentThread(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 blink::PlatformThreadId WebThreadImplForMessageLoop::threadId() const { | 181 blink::PlatformThreadId WebThreadImplForMessageLoop::threadId() const { |
| 182 return thread_id_; | 182 return thread_id_; |
| 183 } | 183 } |
| 184 | 184 |
| 185 WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {} | 185 WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {} |
| 186 | 186 |
| 187 } // namespace html_viewer | 187 } // namespace html_viewer |
| OLD | NEW |