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/common/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/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/threading/thread_local.h" | 13 #include "base/threading/thread_local.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "mojo/common/message_pump_mojo_handler.h" | 15 #include "mojo/message_pump/message_pump_mojo_handler.h" |
16 #include "mojo/common/time_helper.h" | 16 #include "mojo/message_pump/time_helper.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace common { | 19 namespace common { |
20 namespace { | 20 namespace { |
21 | 21 |
22 base::LazyInstance<base::ThreadLocalPointer<MessagePumpMojo> >::Leaky | 22 base::LazyInstance<base::ThreadLocalPointer<MessagePumpMojo> >::Leaky |
23 g_tls_current_pump = LAZY_INSTANCE_INITIALIZER; | 23 g_tls_current_pump = LAZY_INSTANCE_INITIALIZER; |
24 | 24 |
25 MojoDeadline TimeTicksToMojoDeadline(base::TimeTicks time_ticks, | 25 MojoDeadline TimeTicksToMojoDeadline(base::TimeTicks time_ticks, |
26 base::TimeTicks now) { | 26 base::TimeTicks now) { |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 void MessagePumpMojo::WillSignalHandler() { | 286 void MessagePumpMojo::WillSignalHandler() { |
287 FOR_EACH_OBSERVER(Observer, observers_, WillSignalHandler()); | 287 FOR_EACH_OBSERVER(Observer, observers_, WillSignalHandler()); |
288 } | 288 } |
289 | 289 |
290 void MessagePumpMojo::DidSignalHandler() { | 290 void MessagePumpMojo::DidSignalHandler() { |
291 FOR_EACH_OBSERVER(Observer, observers_, DidSignalHandler()); | 291 FOR_EACH_OBSERVER(Observer, observers_, DidSignalHandler()); |
292 } | 292 } |
293 | 293 |
294 } // namespace common | 294 } // namespace common |
295 } // namespace mojo | 295 } // namespace mojo |
OLD | NEW |