OLD | NEW |
---|---|
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" |
11 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/i18n/case_conversion.h" | 13 #include "base/i18n/case_conversion.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/message_loop.h" | |
cpu_(ooo_6.6-7.5)
2012/07/09 05:14:11
does this file belong to this CL?
jam
2012/07/09 05:44:06
yeah, this is because of the waitable_event_watche
| |
15 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
16 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
17 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
18 #include "base/sys_string_conversions.h" | 19 #include "base/sys_string_conversions.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "content/browser/download/byte_stream.h" | 21 #include "content/browser/download/byte_stream.h" |
21 #include "content/browser/download/download_create_info.h" | 22 #include "content/browser/download/download_create_info.h" |
22 #include "content/browser/download/download_file_manager.h" | 23 #include "content/browser/download/download_file_manager.h" |
23 #include "content/browser/download/download_item_impl.h" | 24 #include "content/browser/download/download_item_impl.h" |
24 #include "content/browser/download/download_stats.h" | 25 #include "content/browser/download/download_stats.h" |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1220 void DownloadManagerImpl::DownloadRenamedToFinalName( | 1221 void DownloadManagerImpl::DownloadRenamedToFinalName( |
1221 DownloadItem* download) { | 1222 DownloadItem* download) { |
1222 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1223 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1223 // If the rename failed, we receive an OnDownloadInterrupted() call before we | 1224 // If the rename failed, we receive an OnDownloadInterrupted() call before we |
1224 // receive the DownloadRenamedToFinalName() call. | 1225 // receive the DownloadRenamedToFinalName() call. |
1225 if (delegate_) { | 1226 if (delegate_) { |
1226 delegate_->UpdatePathForItemInPersistentStore( | 1227 delegate_->UpdatePathForItemInPersistentStore( |
1227 download, download->GetFullPath()); | 1228 download, download->GetFullPath()); |
1228 } | 1229 } |
1229 } | 1230 } |
OLD | NEW |