| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/download_manager.h" | 5 #include "chrome/browser/download/download_manager.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 14 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
| 15 #include "base/task.h" | 15 #include "base/task.h" |
| 16 #include "base/utf_string_conversions.h" |
| 16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 17 #include "chrome/browser/browser.h" | 18 #include "chrome/browser/browser.h" |
| 18 #include "chrome/browser/browser_list.h" | 19 #include "chrome/browser/browser_list.h" |
| 19 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/browser/chrome_thread.h" | 21 #include "chrome/browser/chrome_thread.h" |
| 21 #include "chrome/browser/download/download_file_manager.h" | 22 #include "chrome/browser/download/download_file_manager.h" |
| 22 #include "chrome/browser/download/download_history.h" | 23 #include "chrome/browser/download/download_history.h" |
| 23 #include "chrome/browser/download/download_item.h" | 24 #include "chrome/browser/download/download_item.h" |
| 24 #include "chrome/browser/download/download_util.h" | 25 #include "chrome/browser/download/download_util.h" |
| 25 #include "chrome/browser/extensions/extensions_service.h" | 26 #include "chrome/browser/extensions/extensions_service.h" |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 observed_download_manager_->RemoveObserver(this); | 1145 observed_download_manager_->RemoveObserver(this); |
| 1145 } | 1146 } |
| 1146 | 1147 |
| 1147 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { | 1148 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { |
| 1148 observing_download_manager_->NotifyModelChanged(); | 1149 observing_download_manager_->NotifyModelChanged(); |
| 1149 } | 1150 } |
| 1150 | 1151 |
| 1151 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { | 1152 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { |
| 1152 observed_download_manager_ = NULL; | 1153 observed_download_manager_ = NULL; |
| 1153 } | 1154 } |
| OLD | NEW |