OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 break; | 462 break; |
463 } | 463 } |
464 | 464 |
465 default: | 465 default: |
466 NOTREACHED(); | 466 NOTREACHED(); |
467 } | 467 } |
468 } | 468 } |
469 | 469 |
470 void DownloadRequestLimiter::Remove(TabDownloadState* state, | 470 void DownloadRequestLimiter::Remove(TabDownloadState* state, |
471 content::WebContents* contents) { | 471 content::WebContents* contents) { |
472 DCHECK(ContainsKey(state_map_, contents)); | 472 DCHECK(base::ContainsKey(state_map_, contents)); |
473 state_map_.erase(contents); | 473 state_map_.erase(contents); |
474 delete state; | 474 delete state; |
475 } | 475 } |
OLD | NEW |