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/handle_watcher.h" | 5 #include "mojo/message_pump/handle_watcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/atomic_sequence_num.h" | 12 #include "base/atomic_sequence_num.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
22 #include "base/thread_task_runner_handle.h" | |
23 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
| 23 #include "base/threading/thread_task_runner_handle.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
25 #include "mojo/message_pump/message_pump_mojo.h" | 25 #include "mojo/message_pump/message_pump_mojo.h" |
26 #include "mojo/message_pump/message_pump_mojo_handler.h" | 26 #include "mojo/message_pump/message_pump_mojo_handler.h" |
27 #include "mojo/message_pump/time_helper.h" | 27 #include "mojo/message_pump/time_helper.h" |
28 #include "mojo/public/c/system/message_pipe.h" | 28 #include "mojo/public/c/system/message_pipe.h" |
29 | 29 |
30 namespace mojo { | 30 namespace mojo { |
31 namespace common { | 31 namespace common { |
32 | 32 |
33 typedef int WatcherID; | 33 typedef int WatcherID; |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 this, handle, handle_signals, deadline, callback)); | 471 this, handle, handle_signals, deadline, callback)); |
472 } | 472 } |
473 } | 473 } |
474 | 474 |
475 void HandleWatcher::Stop() { | 475 void HandleWatcher::Stop() { |
476 state_.reset(); | 476 state_.reset(); |
477 } | 477 } |
478 | 478 |
479 } // namespace common | 479 } // namespace common |
480 } // namespace mojo | 480 } // namespace mojo |
OLD | NEW |