| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The DownloadManager object manages the process of downloading, including | 5 // The DownloadManager object manages the process of downloading, including |
| 6 // updates to the history system and providing the information for displaying | 6 // updates to the history system and providing the information for displaying |
| 7 // the downloads view in the Destinations tab. There is one DownloadManager per | 7 // the downloads view in the Destinations tab. There is one DownloadManager per |
| 8 // active browser context in Chrome. | 8 // active browser context in Chrome. |
| 9 // | 9 // |
| 10 // Download observers: | 10 // Download observers: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "base/callback.h" | 37 #include "base/callback.h" |
| 38 #include "base/file_path.h" | 38 #include "base/file_path.h" |
| 39 #include "base/gtest_prod_util.h" | 39 #include "base/gtest_prod_util.h" |
| 40 #include "base/hash_tables.h" | 40 #include "base/hash_tables.h" |
| 41 #include "base/memory/ref_counted.h" | 41 #include "base/memory/ref_counted.h" |
| 42 #include "base/memory/scoped_ptr.h" | 42 #include "base/memory/scoped_ptr.h" |
| 43 #include "base/memory/weak_ptr.h" | 43 #include "base/memory/weak_ptr.h" |
| 44 #include "base/observer_list.h" | 44 #include "base/observer_list.h" |
| 45 #include "base/synchronization/lock.h" | 45 #include "base/synchronization/lock.h" |
| 46 #include "base/time.h" | 46 #include "base/time.h" |
| 47 #include "content/browser/browser_thread.h" | |
| 48 #include "content/browser/download/download_item.h" | 47 #include "content/browser/download/download_item.h" |
| 49 #include "content/browser/download/download_status_updater_delegate.h" | 48 #include "content/browser/download/download_status_updater_delegate.h" |
| 50 #include "content/browser/download/interrupt_reasons.h" | 49 #include "content/browser/download/interrupt_reasons.h" |
| 51 #include "content/common/content_export.h" | 50 #include "content/common/content_export.h" |
| 51 #include "content/public/browser/browser_thread.h" |
| 52 #include "net/base/net_errors.h" | 52 #include "net/base/net_errors.h" |
| 53 | 53 |
| 54 class DownloadFileManager; | 54 class DownloadFileManager; |
| 55 class DownloadRequestHandle; | 55 class DownloadRequestHandle; |
| 56 class DownloadStatusUpdater; | 56 class DownloadStatusUpdater; |
| 57 class GURL; | 57 class GURL; |
| 58 class ResourceDispatcherHost; | 58 class ResourceDispatcherHost; |
| 59 class TabContents; | 59 class TabContents; |
| 60 struct DownloadCreateInfo; | 60 struct DownloadCreateInfo; |
| 61 struct DownloadSaveInfo; | 61 struct DownloadSaveInfo; |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 content::DownloadManagerDelegate* delegate_; | 435 content::DownloadManagerDelegate* delegate_; |
| 436 | 436 |
| 437 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 437 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
| 438 // For debugging only. | 438 // For debugging only. |
| 439 int64 largest_db_handle_in_history_; | 439 int64 largest_db_handle_in_history_; |
| 440 | 440 |
| 441 DISALLOW_COPY_AND_ASSIGN(DownloadManager); | 441 DISALLOW_COPY_AND_ASSIGN(DownloadManager); |
| 442 }; | 442 }; |
| 443 | 443 |
| 444 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ | 444 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |