Lines Matching refs:state
49 // Don't change the state if the user clicks on the page some where.
99 // NOTE: resetting state on a pending navigate isn't ideal. In particular
117 // reset the download state if the user is navigating to a different
187 TabDownloadState* state = GetDownloadState(&tab->controller(), NULL, false);
188 return state ? state->download_status() : ALLOW_ONE_DOWNLOAD;
196 // thread so that we can query UI state.
206 TabDownloadState* state = GetDownloadState(&tab->controller(), NULL, false);
207 if (!state)
210 state->OnUserGesture();
230 TabDownloadState* state =
232 state_map_[controller] = state;
233 return state;
272 TabDownloadState* state = GetDownloadState(
274 switch (state->download_status()) {
276 if (state->download_count() && !(state->download_count() %
278 state->set_download_status(PROMPT_BEFORE_DOWNLOAD);
280 state->increment_download_count();
284 state->set_download_status(PROMPT_BEFORE_DOWNLOAD);
293 state->PromptUserForDownload(effective_tab, callback);
294 state->increment_download_count();
318 void DownloadRequestLimiter::Remove(TabDownloadState* state) {
319 DCHECK(ContainsKey(state_map_, state->controller()));
320 state_map_.erase(state->controller());
321 delete state;