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

Unified Diff: chrome/browser/download/download_request_handle.cc

Issue 7294013: Modified cancel and interrupt processing to avoid race with history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_request_handle.cc
diff --git a/chrome/browser/download/download_request_handle.cc b/chrome/browser/download/download_request_handle.cc
index 9e7f581f30fcfd7592093afda408fd51b883777a..1ad5a740b802cd54e9948080915a1a845a308ed1 100644
--- a/chrome/browser/download/download_request_handle.cc
+++ b/chrome/browser/download/download_request_handle.cc
@@ -68,7 +68,7 @@ DownloadManager* DownloadRequestHandle::GetDownloadManager() const {
return profile->GetDownloadManager();
}
-void DownloadRequestHandle::PauseRequest() {
+void DownloadRequestHandle::PauseRequest() const {
// The post is safe because ResourceDispatcherHost is guaranteed
// to outlive the IO thread.
if (rdh_) {
@@ -79,7 +79,7 @@ void DownloadRequestHandle::PauseRequest() {
}
}
-void DownloadRequestHandle::ResumeRequest() {
+void DownloadRequestHandle::ResumeRequest() const {
// The post is safe because ResourceDispatcherHost is guaranteed
// to outlive the IO thread.
if (rdh_) {
@@ -90,7 +90,7 @@ void DownloadRequestHandle::ResumeRequest() {
}
}
-void DownloadRequestHandle::CancelRequest() {
+void DownloadRequestHandle::CancelRequest() const {
// The post is safe because ResourceDispatcherHost is guaranteed
// to outlive the IO thread.
if (rdh_) {

Powered by Google App Engine
This is Rietveld 408576698