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

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

Issue 541813002: Componentize chrome/common/content_settings files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 6 years, 3 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
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 <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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 StateMap state_map_; 250 StateMap state_map_;
251 251
252 // Weak ptr factory used when |CanDownload| asks the delegate asynchronously 252 // Weak ptr factory used when |CanDownload| asks the delegate asynchronously
253 // about the download. 253 // about the download.
254 base::WeakPtrFactory<DownloadRequestLimiter> factory_; 254 base::WeakPtrFactory<DownloadRequestLimiter> factory_;
255 255
256 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiter); 256 DISALLOW_COPY_AND_ASSIGN(DownloadRequestLimiter);
257 }; 257 };
258 258
259 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_ 259 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_LIMITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698