Lines Matching refs:state_
128 : state_(NULL),
174 state.run_depth = state_ ? state_->run_depth + 1 : 1;
177 RunState* previous_state = state_;
178 state_ = &state;
196 if (state_->should_quit)
199 more_work_is_plausible |= state_->delegate->DoWork();
200 if (state_->should_quit)
204 state_->delegate->DoDelayedWork(&delayed_work_time_);
205 if (state_->should_quit)
211 more_work_is_plausible = state_->delegate->DoIdleWork();
212 if (state_->should_quit)
216 state_ = previous_state;
223 if (state_ && // state_ may be null during tests.
224 state_->has_work)
233 if (!state_) // state_ may be null during tests.
247 state_->has_work = true;
250 if (state_->has_work)
263 state_->has_work = false;
264 if (state_->delegate->DoWork()) {
269 state_->has_work = true;
272 if (state_->should_quit)
275 state_->delegate->DoDelayedWork(&delayed_work_time_);
295 if (state_) {
296 state_->should_quit = true;
324 if (message_pump->state_ && // state_ may be null during tests.
325 message_pump->state_->dispatcher) {
326 if (!message_pump->state_->dispatcher->Dispatch(event))
327 message_pump->state_->should_quit = true;