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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "chrome/common/content_settings.h" | 16 #include "components/content_settings/core/common/content_settings.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
20 | 20 |
21 class HostContentSettingsMap; | 21 class HostContentSettingsMap; |
22 class DownloadRequestInfoBarDelegate; | 22 class DownloadRequestInfoBarDelegate; |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class NavigationController; | 25 class NavigationController; |
26 class WebContents; | 26 class WebContents; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 StateMap state_map_; | 255 StateMap state_map_; |
256 | 256 |
257 // Weak ptr factory used when |CanDownload| asks the delegate asynchronously | 257 // Weak ptr factory used when |CanDownload| asks the delegate asynchronously |
258 // about the download. | 258 // about the download. |
259 base::WeakPtrFactory<DownloadRequestLimiter> factory_; | 259 base::WeakPtrFactory<DownloadRequestLimiter> factory_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiter); | 261 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiter); |
262 }; | 262 }; |
263 | 263 |
264 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ | 264 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ |
OLD | NEW |