| OLD | NEW |
| 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 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 5 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 // TODO(noelutz): This function currently works as a callback place holder. | 539 // TODO(noelutz): This function currently works as a callback place holder. |
| 540 // Once we decide the hash check is reliable, we could move the | 540 // Once we decide the hash check is reliable, we could move the |
| 541 // MaybeCompleteDownload in OnAllDataSaved to this function. | 541 // MaybeCompleteDownload in OnAllDataSaved to this function. |
| 542 void ChromeDownloadManagerDelegate::CheckDownloadHashDone( | 542 void ChromeDownloadManagerDelegate::CheckDownloadHashDone( |
| 543 int32 download_id, | 543 int32 download_id, |
| 544 bool is_dangerous_hash) { | 544 bool is_dangerous_hash) { |
| 545 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 545 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 546 DVLOG(1) << "CheckDownloadHashDone, download_id: " << download_id | 546 DVLOG(1) << "CheckDownloadHashDone, download_id: " << download_id |
| 547 << " is dangerous_hash: " << is_dangerous_hash; | 547 << " is dangerous_hash: " << is_dangerous_hash; |
| 548 } | 548 } |
| 549 |
| 550 void ChromeDownloadManagerDelegate::MarkDownloadOpened(int64 db_handle) { |
| 551 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 552 download_history_->MarkDownloadOpened(db_handle); |
| 553 } |
| OLD | NEW |