| 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_COMMON_MESSAGE_PUMP_MOJO_H_ | 5 #ifndef MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ |
| 6 #define MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ | 6 #define MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 HandleToHandler handlers_; | 121 HandleToHandler handlers_; |
| 122 | 122 |
| 123 // An ever increasing value assigned to each Handler::id. Used to detect | 123 // An ever increasing value assigned to each Handler::id. Used to detect |
| 124 // uniqueness while notifying. That is, while notifying expired timers we copy | 124 // uniqueness while notifying. That is, while notifying expired timers we copy |
| 125 // |handlers_| and only notify handlers whose id match. If the id does not | 125 // |handlers_| and only notify handlers whose id match. If the id does not |
| 126 // match it means the handler was removed then added so that we shouldn't | 126 // match it means the handler was removed then added so that we shouldn't |
| 127 // notify it. | 127 // notify it. |
| 128 int next_handler_id_; | 128 int next_handler_id_; |
| 129 | 129 |
| 130 ObserverList<Observer> observers_; | 130 base::ObserverList<Observer> observers_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(MessagePumpMojo); | 132 DISALLOW_COPY_AND_ASSIGN(MessagePumpMojo); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace common | 135 } // namespace common |
| 136 } // namespace mojo | 136 } // namespace mojo |
| 137 | 137 |
| 138 #endif // MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ | 138 #endif // MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ |
| OLD | NEW |