| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 27 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| 28 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 28 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| 29 | 29 |
| 30 #include <string> | 30 #include <string> |
| 31 #include <vector> | 31 #include <vector> |
| 32 | 32 |
| 33 #include "base/basictypes.h" | 33 #include "base/basictypes.h" |
| 34 #include "base/callback.h" | 34 #include "base/callback.h" |
| 35 #include "base/files/file_path.h" | 35 #include "base/files/file_path.h" |
| 36 #include "base/gtest_prod_util.h" | |
| 37 #include "base/sequenced_task_runner_helpers.h" | 36 #include "base/sequenced_task_runner_helpers.h" |
| 38 #include "base/time/time.h" | 37 #include "base/time/time.h" |
| 39 #include "content/public/browser/download_interrupt_reasons.h" | 38 #include "content/public/browser/download_interrupt_reasons.h" |
| 40 #include "content/public/browser/download_item.h" | 39 #include "content/public/browser/download_item.h" |
| 41 #include "content/public/browser/download_url_parameters.h" | 40 #include "content/public/browser/download_url_parameters.h" |
| 42 #include "net/base/net_errors.h" | 41 #include "net/base/net_errors.h" |
| 43 #include "net/log/net_log.h" | 42 #include "net/log/net_log.h" |
| 44 | 43 |
| 45 class GURL; | 44 class GURL; |
| 46 | 45 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 virtual void CheckForHistoryFilesRemoval() = 0; | 183 virtual void CheckForHistoryFilesRemoval() = 0; |
| 185 | 184 |
| 186 // Get the download item for |id| if present, no matter what type of download | 185 // Get the download item for |id| if present, no matter what type of download |
| 187 // it is or state it's in. | 186 // it is or state it's in. |
| 188 virtual DownloadItem* GetDownload(uint32 id) = 0; | 187 virtual DownloadItem* GetDownload(uint32 id) = 0; |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 } // namespace content | 190 } // namespace content |
| 192 | 191 |
| 193 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 192 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |