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

Side by Side Diff: content/browser/download/download_request_handle.h

Issue 7983037: Revert 102126 - Make cancel remove cancelled download from active queues at time of cancel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | 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 CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 // Note that |rdh| is required to be non-null. 30 // Note that |rdh| is required to be non-null.
31 DownloadRequestHandle(ResourceDispatcherHost* rdh, 31 DownloadRequestHandle(ResourceDispatcherHost* rdh,
32 int child_id, 32 int child_id,
33 int render_view_id, 33 int render_view_id,
34 int request_id); 34 int request_id);
35 35
36 // These functions must be called on the UI thread. 36 // These functions must be called on the UI thread.
37 TabContents* GetTabContents() const; 37 TabContents* GetTabContents() const;
38 DownloadManager* GetDownloadManager() const; 38 DownloadManager* GetDownloadManager() const;
39 39
40 // Pause or resume the matching URL request. Note that while these 40 // Pause or resume the matching URL request.
41 // do not modify the DownloadRequestHandle, they do modify the
42 // request the handle refers to.
43 void PauseRequest() const; 41 void PauseRequest() const;
44 void ResumeRequest() const; 42 void ResumeRequest() const;
45 43
46 // Cancel the request. Note that while this does not 44 // Cancel the request
47 // modify the DownloadRequestHandle, it does modify the
48 // request the handle refers to.
49 void CancelRequest() const; 45 void CancelRequest() const;
50 46
51 std::string DebugString() const; 47 std::string DebugString() const;
52 48
53 private: 49 private:
54 // The resource dispatcher host. 50 // The resource dispatcher host.
55 ResourceDispatcherHost* rdh_; 51 ResourceDispatcherHost* rdh_;
56 52
57 // The ID of the child process that started the download. 53 // The ID of the child process that started the download.
58 int child_id_; 54 int child_id_;
59 55
60 // The ID of the render view that started the download. 56 // The ID of the render view that started the download.
61 int render_view_id_; 57 int render_view_id_;
62 58
63 // The ID associated with the request used for the download. 59 // The ID associated with the request used for the download.
64 int request_id_; 60 int request_id_;
65 }; 61 };
66 62
67 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_ 63 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_REQUEST_HANDLE_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_delegate.h ('k') | content/browser/download/download_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698