Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: mojo/common/message_pump_mojo.h

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | mojo/common/trace_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | mojo/common/trace_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698