Chromium Code Reviews| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 #include "chrome/browser/download/download_util.h" | 21 #include "chrome/browser/download/download_util.h" |
| 22 #include "chrome/browser/download/save_package_file_picker.h" | 22 #include "chrome/browser/download/save_package_file_picker.h" |
| 23 #include "chrome/browser/extensions/crx_installer.h" | 23 #include "chrome/browser/extensions/crx_installer.h" |
| 24 #include "chrome/browser/extensions/extension_service.h" | 24 #include "chrome/browser/extensions/extension_service.h" |
| 25 #include "chrome/browser/prefs/pref_member.h" | 25 #include "chrome/browser/prefs/pref_member.h" |
| 26 #include "chrome/browser/prefs/pref_service.h" | 26 #include "chrome/browser/prefs/pref_service.h" |
| 27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 28 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 28 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 29 #include "chrome/browser/ui/browser.h" | 29 #include "chrome/browser/ui/browser.h" |
| 30 #include "chrome/browser/ui/browser_list.h" | 30 #include "chrome/browser/ui/browser_list.h" |
| 31 #include "chrome/common/chrome_notification_types.h" | |
|
jstritar
2011/11/07 20:47:42
I guess these were getting included from extension
| |
| 31 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
| 32 #include "chrome/common/extensions/user_script.h" | 33 #include "chrome/common/extensions/user_script.h" |
| 33 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
| 34 #include "content/browser/download/download_file.h" | 35 #include "content/browser/download/download_file.h" |
| 35 #include "content/browser/download/download_item.h" | 36 #include "content/browser/download/download_item.h" |
| 36 #include "content/browser/download/download_manager.h" | 37 #include "content/browser/download/download_manager.h" |
| 37 #include "content/browser/download/download_status_updater.h" | 38 #include "content/browser/download/download_status_updater.h" |
| 38 #include "content/browser/tab_contents/tab_contents.h" | 39 #include "content/browser/tab_contents/tab_contents.h" |
| 39 #include "content/public/browser/notification_source.h" | 40 #include "content/public/browser/notification_source.h" |
| 40 #include "grit/generated_resources.h" | 41 #include "grit/generated_resources.h" |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 560 // TODO(noelutz): This function currently works as a callback place holder. | 561 // TODO(noelutz): This function currently works as a callback place holder. |
| 561 // Once we decide the hash check is reliable, we could move the | 562 // Once we decide the hash check is reliable, we could move the |
| 562 // MaybeCompleteDownload in OnAllDataSaved to this function. | 563 // MaybeCompleteDownload in OnAllDataSaved to this function. |
| 563 void ChromeDownloadManagerDelegate::CheckDownloadHashDone( | 564 void ChromeDownloadManagerDelegate::CheckDownloadHashDone( |
| 564 int32 download_id, | 565 int32 download_id, |
| 565 bool is_dangerous_hash) { | 566 bool is_dangerous_hash) { |
| 566 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 567 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 567 DVLOG(1) << "CheckDownloadHashDone, download_id: " << download_id | 568 DVLOG(1) << "CheckDownloadHashDone, download_id: " << download_id |
| 568 << " is dangerous_hash: " << is_dangerous_hash; | 569 << " is dangerous_hash: " << is_dangerous_hash; |
| 569 } | 570 } |
| OLD | NEW |