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

Side by Side Diff: content/browser/download/download_manager_impl.cc

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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 #include "content/browser/download/download_manager_impl.h" 5 #include "content/browser/download/download_manager_impl.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 DownloadItem::kUninitializedHandle); 832 DownloadItem::kUninitializedHandle);
833 } 833 }
834 } 834 }
835 835
836 void DownloadManagerImpl::DownloadRenamedToFinalName( 836 void DownloadManagerImpl::DownloadRenamedToFinalName(
837 DownloadItemImpl* download) { 837 DownloadItemImpl* download) {
838 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 838 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
839 // If the rename failed, we processed an interrupt before we get here. 839 // If the rename failed, we processed an interrupt before we get here.
840 if (delegate_) { 840 if (delegate_) {
841 delegate_->UpdatePathForItemInPersistentStore( 841 delegate_->UpdatePathForItemInPersistentStore(
842 download, download->GetFullPath()); 842 download, download->GetTargetFilePath(), download->GetFullPath());
843 } 843 }
844 } 844 }
845 845
846 } // namespace content 846 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698