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

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

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/download/download_request_limiter.h" 11 #include "chrome/browser/download/download_request_limiter.h"
12 #include "content/browser/renderer_host/resource_handler.h" 12 #include "content/browser/renderer_host/resource_handler.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 14
15 class DownloadResourceHandler;
16 class ResourceDispatcherHost; 15 class ResourceDispatcherHost;
17 16
18 namespace net { 17 namespace net {
19 class URLRequest; 18 class URLRequest;
20 } // namespace net 19 } // namespace net
21 20
22 // DownloadThrottlingResourceHandler is used to determine if a download should 21 // DownloadThrottlingResourceHandler is used to determine if a download should
23 // be allowed. When a DownloadThrottlingResourceHandler is created it pauses the 22 // be allowed. When a DownloadThrottlingResourceHandler is created it pauses the
24 // download and asks the DownloadRequestLimiter if the download should be 23 // download and asks the DownloadRequestLimiter if the download should be
25 // allowed. The DownloadRequestLimiter notifies us asynchronously as to whether 24 // allowed. The DownloadRequestLimiter notifies us asynchronously as to whether
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int tmp_buffer_length_; 88 int tmp_buffer_length_;
90 89
91 // Have we received OnRequestClosed()? If so, we shouldn't act on 90 // Have we received OnRequestClosed()? If so, we shouldn't act on
92 // CancelDownload()/ContinueDownload(). 91 // CancelDownload()/ContinueDownload().
93 bool request_closed_; 92 bool request_closed_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(DownloadThrottlingResourceHandler); 94 DISALLOW_COPY_AND_ASSIGN(DownloadThrottlingResourceHandler);
96 }; 95 };
97 96
98 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_ 97 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_request_infobar_delegate.h ('k') | chrome/browser/download/download_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698