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/stl_util-inl.h" |
14 #include "base/sys_string_conversions.h" | 15 #include "base/sys_string_conversions.h" |
15 #include "base/task.h" | 16 #include "base/task.h" |
16 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "chrome/browser/browser.h" | 19 #include "chrome/browser/browser.h" |
19 #include "chrome/browser/browser_list.h" | 20 #include "chrome/browser/browser_list.h" |
20 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/chrome_thread.h" | 22 #include "chrome/browser/chrome_thread.h" |
22 #include "chrome/browser/download/download_file_manager.h" | 23 #include "chrome/browser/download/download_file_manager.h" |
23 #include "chrome/browser/download/download_history.h" | 24 #include "chrome/browser/download/download_history.h" |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 observed_download_manager_->RemoveObserver(this); | 1058 observed_download_manager_->RemoveObserver(this); |
1058 } | 1059 } |
1059 | 1060 |
1060 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { | 1061 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { |
1061 observing_download_manager_->NotifyModelChanged(); | 1062 observing_download_manager_->NotifyModelChanged(); |
1062 } | 1063 } |
1063 | 1064 |
1064 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { | 1065 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { |
1065 observed_download_manager_ = NULL; | 1066 observed_download_manager_ = NULL; |
1066 } | 1067 } |
OLD | NEW |