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

Side by Side Diff: chrome/browser/download/download_request_limiter.cc

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/download/download_request_limiter.h" 5 #include "chrome/browser/download/download_request_limiter.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/download/download_request_infobar_delegate.h" 8 #include "chrome/browser/download/download_request_infobar_delegate.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h"
11 #include "chrome/browser/tab_contents/navigation_entry.h"
12 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
13 #include "chrome/browser/tab_contents/tab_util.h" 9 #include "chrome/browser/tab_contents/tab_util.h"
14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/common/notification_source.h" 10 #include "chrome/common/notification_source.h"
11 #include "content/browser/browser_thread.h"
12 #include "content/browser/tab_contents/navigation_controller.h"
13 #include "content/browser/tab_contents/navigation_entry.h"
14 #include "content/browser/tab_contents/tab_contents_delegate.h"
15 #include "content/browser/tab_contents/tab_contents.h"
16 16
17 // TabDownloadState ------------------------------------------------------------ 17 // TabDownloadState ------------------------------------------------------------
18 18
19 DownloadRequestLimiter::TabDownloadState::TabDownloadState( 19 DownloadRequestLimiter::TabDownloadState::TabDownloadState(
20 DownloadRequestLimiter* host, 20 DownloadRequestLimiter* host,
21 NavigationController* controller, 21 NavigationController* controller,
22 NavigationController* originating_controller) 22 NavigationController* originating_controller)
23 : host_(host), 23 : host_(host),
24 controller_(controller), 24 controller_(controller),
25 status_(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD), 25 status_(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD),
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 void DownloadRequestLimiter::Remove(TabDownloadState* state) { 314 void DownloadRequestLimiter::Remove(TabDownloadState* state) {
315 DCHECK(ContainsKey(state_map_, state->controller())); 315 DCHECK(ContainsKey(state_map_, state->controller()));
316 state_map_.erase(state->controller()); 316 state_map_.erase(state->controller());
317 delete state; 317 delete state;
318 } 318 }
319 319
320 // static 320 // static
321 DownloadRequestLimiter::TestingDelegate* DownloadRequestLimiter::delegate_ = 321 DownloadRequestLimiter::TestingDelegate* DownloadRequestLimiter::delegate_ =
322 NULL; 322 NULL;
OLDNEW
« no previous file with comments | « chrome/browser/download/download_prefs.cc ('k') | chrome/browser/download/download_safe_browsing_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698