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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/download/download_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "components/content_settings/core/common/content_settings.h" 19 #include "components/content_settings/core/common/content_settings.h"
20 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/resource_request_info.h" 22 #include "content/public/browser/resource_request_info.h"
23 #include "content/public/browser/web_contents_observer.h" 23 #include "content/public/browser/web_contents_observer.h"
24 24
25 class HostContentSettingsMap; 25 class HostContentSettingsMap;
26 class DownloadRequestInfoBarDelegateAndroid;
27 26
28 namespace content { 27 namespace content {
29 class NavigationController; 28 class NavigationController;
30 class WebContents; 29 class WebContents;
31 } 30 }
32 31
33 // DownloadRequestLimiter is responsible for determining whether a download 32 // DownloadRequestLimiter is responsible for determining whether a download
34 // should be allowed or not. It is designed to keep pages from downloading 33 // should be allowed or not. It is designed to keep pages from downloading
35 // multiple files without user interaction. DownloadRequestLimiter is invoked 34 // multiple files without user interaction. DownloadRequestLimiter is invoked
36 // from ResourceDispatcherHost any time a download begins 35 // from ResourceDispatcherHost any time a download begins
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 StateMap state_map_; 243 StateMap state_map_;
245 244
246 // Weak ptr factory used when |CanDownload| asks the delegate asynchronously 245 // Weak ptr factory used when |CanDownload| asks the delegate asynchronously
247 // about the download. 246 // about the download.
248 base::WeakPtrFactory<DownloadRequestLimiter> factory_; 247 base::WeakPtrFactory<DownloadRequestLimiter> factory_;
249 248
250 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiter); 249 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiter);
251 }; 250 };
252 251
253 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ 252 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/download/download_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698