| 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 10 matching lines...) Expand all Loading... |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "chrome/browser/browser_list.h" | 22 #include "chrome/browser/browser_list.h" |
| 23 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 24 #include "chrome/browser/chrome_thread.h" | 24 #include "chrome/browser/chrome_thread.h" |
| 25 #include "chrome/browser/download/download_file.h" | 25 #include "chrome/browser/download/download_file.h" |
| 26 #include "chrome/browser/download/download_util.h" | 26 #include "chrome/browser/download/download_util.h" |
| 27 #include "chrome/browser/extensions/crx_installer.h" | 27 #include "chrome/browser/extensions/crx_installer.h" |
| 28 #include "chrome/browser/extensions/extension_install_ui.h" | 28 #include "chrome/browser/extensions/extension_install_ui.h" |
| 29 #include "chrome/browser/extensions/extensions_service.h" | 29 #include "chrome/browser/extensions/extensions_service.h" |
| 30 #include "chrome/browser/net/chrome_url_request_context.h" | 30 #include "chrome/browser/net/chrome_url_request_context.h" |
| 31 #include "chrome/browser/platform_util.h" |
| 31 #include "chrome/browser/pref_service.h" | 32 #include "chrome/browser/pref_service.h" |
| 32 #include "chrome/browser/profile.h" | 33 #include "chrome/browser/profile.h" |
| 33 #include "chrome/browser/renderer_host/render_process_host.h" | 34 #include "chrome/browser/renderer_host/render_process_host.h" |
| 34 #include "chrome/browser/renderer_host/render_view_host.h" | 35 #include "chrome/browser/renderer_host/render_view_host.h" |
| 35 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 36 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 36 #include "chrome/browser/tab_contents/infobar_delegate.h" | 37 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 37 #include "chrome/browser/tab_contents/tab_contents.h" | 38 #include "chrome/browser/tab_contents/tab_contents.h" |
| 38 #include "chrome/browser/tab_contents/tab_util.h" | 39 #include "chrome/browser/tab_contents/tab_util.h" |
| 39 #include "chrome/common/chrome_constants.h" | 40 #include "chrome/common/chrome_constants.h" |
| 40 #include "chrome/common/chrome_paths.h" | 41 #include "chrome/common/chrome_paths.h" |
| 41 #include "chrome/common/extensions/extension.h" | 42 #include "chrome/common/extensions/extension.h" |
| 42 #include "chrome/common/extensions/user_script.h" | 43 #include "chrome/common/extensions/user_script.h" |
| 43 #include "chrome/common/notification_service.h" | 44 #include "chrome/common/notification_service.h" |
| 44 #include "chrome/common/notification_type.h" | 45 #include "chrome/common/notification_type.h" |
| 45 #include "chrome/common/platform_util.h" | |
| 46 #include "chrome/common/pref_names.h" | 46 #include "chrome/common/pref_names.h" |
| 47 #include "googleurl/src/gurl.h" | 47 #include "googleurl/src/gurl.h" |
| 48 #include "grit/chromium_strings.h" | 48 #include "grit/chromium_strings.h" |
| 49 #include "grit/generated_resources.h" | 49 #include "grit/generated_resources.h" |
| 50 #include "grit/theme_resources.h" | 50 #include "grit/theme_resources.h" |
| 51 #include "net/base/mime_util.h" | 51 #include "net/base/mime_util.h" |
| 52 #include "net/base/net_util.h" | 52 #include "net/base/net_util.h" |
| 53 #include "net/url_request/url_request_context.h" | 53 #include "net/url_request/url_request_context.h" |
| 54 | 54 |
| 55 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
| (...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 observing_download_manager_->NotifyModelChanged(); | 1783 observing_download_manager_->NotifyModelChanged(); |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 void DownloadManager::OtherDownloadManagerObserver::SetDownloads( | 1786 void DownloadManager::OtherDownloadManagerObserver::SetDownloads( |
| 1787 std::vector<DownloadItem*>& downloads) { | 1787 std::vector<DownloadItem*>& downloads) { |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { | 1790 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { |
| 1791 observed_download_manager_ = NULL; | 1791 observed_download_manager_ = NULL; |
| 1792 } | 1792 } |
| OLD | NEW |