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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/download/download_file_manager.h" | 23 #include "chrome/browser/download/download_file_manager.h" |
24 #include "chrome/browser/download/download_history.h" | 24 #include "chrome/browser/download/download_history.h" |
25 #include "chrome/browser/download/download_item.h" | 25 #include "chrome/browser/download/download_item.h" |
26 #include "chrome/browser/download/download_prefs.h" | 26 #include "chrome/browser/download/download_prefs.h" |
27 #include "chrome/browser/download/download_status_updater.h" | 27 #include "chrome/browser/download/download_status_updater.h" |
28 #include "chrome/browser/download/download_util.h" | 28 #include "chrome/browser/download/download_util.h" |
29 #include "chrome/browser/extensions/extensions_service.h" | 29 #include "chrome/browser/extensions/extensions_service.h" |
30 #include "chrome/browser/history/download_create_info.h" | 30 #include "chrome/browser/history/download_create_info.h" |
31 #include "chrome/browser/net/chrome_url_request_context.h" | 31 #include "chrome/browser/net/chrome_url_request_context.h" |
32 #include "chrome/browser/platform_util.h" | 32 #include "chrome/browser/platform_util.h" |
33 #include "chrome/browser/profile.h" | 33 #include "chrome/browser/profiles/profile.h" |
34 #include "chrome/browser/renderer_host/render_process_host.h" | 34 #include "chrome/browser/renderer_host/render_process_host.h" |
35 #include "chrome/browser/renderer_host/render_view_host.h" | 35 #include "chrome/browser/renderer_host/render_view_host.h" |
36 #include "chrome/browser/tab_contents/infobar_delegate.h" | 36 #include "chrome/browser/tab_contents/infobar_delegate.h" |
37 #include "chrome/browser/tab_contents/tab_contents.h" | 37 #include "chrome/browser/tab_contents/tab_contents.h" |
38 #include "chrome/browser/tab_contents/tab_util.h" | 38 #include "chrome/browser/tab_contents/tab_util.h" |
39 #include "chrome/browser/ui/browser.h" | 39 #include "chrome/browser/ui/browser.h" |
40 #include "chrome/common/chrome_paths.h" | 40 #include "chrome/common/chrome_paths.h" |
41 #include "chrome/common/notification_service.h" | 41 #include "chrome/common/notification_service.h" |
42 #include "chrome/common/notification_type.h" | 42 #include "chrome/common/notification_type.h" |
43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 observed_download_manager_->RemoveObserver(this); | 1039 observed_download_manager_->RemoveObserver(this); |
1040 } | 1040 } |
1041 | 1041 |
1042 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { | 1042 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { |
1043 observing_download_manager_->NotifyModelChanged(); | 1043 observing_download_manager_->NotifyModelChanged(); |
1044 } | 1044 } |
1045 | 1045 |
1046 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { | 1046 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { |
1047 observed_download_manager_ = NULL; | 1047 observed_download_manager_ = NULL; |
1048 } | 1048 } |
OLD | NEW |