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