OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "mojo/message_pump/message_pump_mojo.h" | 5 #include "mojo/message_pump/message_pump_mojo.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/debug/alias.h" | 10 #include "base/debug/alias.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/threading/thread_local.h" | 12 #include "base/threading/thread_local.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "mojo/message_pump/message_pump_mojo_handler.h" | 14 #include "mojo/message_pump/message_pump_mojo_handler.h" |
15 #include "mojo/message_pump/time_helper.h" | 15 #include "mojo/message_pump/time_helper.h" |
| 16 #include "mojo/public/cpp/system/wait.h" |
16 | 17 |
17 namespace mojo { | 18 namespace mojo { |
18 namespace common { | 19 namespace common { |
19 namespace { | 20 namespace { |
20 | 21 |
21 base::ThreadLocalPointer<MessagePumpMojo>* CurrentPump() { | 22 base::ThreadLocalPointer<MessagePumpMojo>* CurrentPump() { |
22 static auto* tls = new base::ThreadLocalPointer<MessagePumpMojo>; | 23 static auto* tls = new base::ThreadLocalPointer<MessagePumpMojo>; |
23 return tls; | 24 return tls; |
24 } | 25 } |
25 | 26 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 void MessagePumpMojo::WillSignalHandler() { | 324 void MessagePumpMojo::WillSignalHandler() { |
324 FOR_EACH_OBSERVER(Observer, observers_, WillSignalHandler()); | 325 FOR_EACH_OBSERVER(Observer, observers_, WillSignalHandler()); |
325 } | 326 } |
326 | 327 |
327 void MessagePumpMojo::DidSignalHandler() { | 328 void MessagePumpMojo::DidSignalHandler() { |
328 FOR_EACH_OBSERVER(Observer, observers_, DidSignalHandler()); | 329 FOR_EACH_OBSERVER(Observer, observers_, DidSignalHandler()); |
329 } | 330 } |
330 | 331 |
331 } // namespace common | 332 } // namespace common |
332 } // namespace mojo | 333 } // namespace mojo |
OLD | NEW |