| 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 #ifndef MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_ | 5 #ifndef MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_ |
| 6 #define MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_ | 6 #define MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <queue> | 11 #include <queue> |
| 10 | 12 |
| 11 #include "mojo/public/cpp/bindings/callback.h" | 13 #include "mojo/public/cpp/bindings/callback.h" |
| 12 #include "mojo/public/cpp/system/core.h" | 14 #include "mojo/public/cpp/system/core.h" |
| 13 | 15 |
| 14 namespace mojo { | 16 namespace mojo { |
| 15 | 17 |
| 16 class RunLoopHandler; | 18 class RunLoopHandler; |
| 17 | 19 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 uint64_t next_sequence_number_; | 149 uint64_t next_sequence_number_; |
| 148 typedef std::priority_queue<PendingTask> DelayedTaskQueue; | 150 typedef std::priority_queue<PendingTask> DelayedTaskQueue; |
| 149 DelayedTaskQueue delayed_tasks_; | 151 DelayedTaskQueue delayed_tasks_; |
| 150 | 152 |
| 151 MOJO_DISALLOW_COPY_AND_ASSIGN(RunLoop); | 153 MOJO_DISALLOW_COPY_AND_ASSIGN(RunLoop); |
| 152 }; | 154 }; |
| 153 | 155 |
| 154 } // namespace mojo | 156 } // namespace mojo |
| 155 | 157 |
| 156 #endif // MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_ | 158 #endif // MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_ |
| OLD | NEW |