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 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/profiles/profile.h" | 34 #include "chrome/browser/profiles/profile.h" |
35 #include "chrome/browser/renderer_host/render_process_host.h" | 35 #include "chrome/browser/renderer_host/render_process_host.h" |
36 #include "chrome/browser/renderer_host/render_view_host.h" | 36 #include "chrome/browser/renderer_host/render_view_host.h" |
37 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 37 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
38 #include "chrome/browser/tab_contents/infobar_delegate.h" | 38 #include "chrome/browser/tab_contents/infobar_delegate.h" |
39 #include "chrome/browser/tab_contents/tab_contents.h" | 39 #include "chrome/browser/tab_contents/tab_contents.h" |
40 #include "chrome/browser/tab_contents/tab_util.h" | 40 #include "chrome/browser/tab_contents/tab_util.h" |
41 #include "chrome/browser/ui/browser.h" | 41 #include "chrome/browser/ui/browser.h" |
42 #include "chrome/common/chrome_paths.h" | 42 #include "chrome/common/chrome_paths.h" |
43 #include "chrome/common/notification_type.h" | 43 #include "chrome/common/notification_type.h" |
44 #include "chrome/common/pref_names.h" | |
45 #include "googleurl/src/gurl.h" | 44 #include "googleurl/src/gurl.h" |
46 #include "grit/generated_resources.h" | 45 #include "grit/generated_resources.h" |
47 #include "grit/theme_resources.h" | 46 #include "grit/theme_resources.h" |
48 #include "net/base/mime_util.h" | 47 #include "net/base/mime_util.h" |
49 #include "net/base/net_util.h" | 48 #include "net/base/net_util.h" |
50 | 49 |
51 DownloadManager::DownloadManager(DownloadStatusUpdater* status_updater) | 50 DownloadManager::DownloadManager(DownloadStatusUpdater* status_updater) |
52 : shutdown_needed_(false), | 51 : shutdown_needed_(false), |
53 profile_(NULL), | 52 profile_(NULL), |
54 file_manager_(NULL), | 53 file_manager_(NULL), |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 observed_download_manager_->RemoveObserver(this); | 1101 observed_download_manager_->RemoveObserver(this); |
1103 } | 1102 } |
1104 | 1103 |
1105 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { | 1104 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { |
1106 observing_download_manager_->NotifyModelChanged(); | 1105 observing_download_manager_->NotifyModelChanged(); |
1107 } | 1106 } |
1108 | 1107 |
1109 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { | 1108 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { |
1110 observed_download_manager_ = NULL; | 1109 observed_download_manager_ = NULL; |
1111 } | 1110 } |
OLD | NEW |