| 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 22 matching lines...) Expand all Loading... |
| 33 #include <vector> | 33 #include <vector> |
| 34 | 34 |
| 35 #include "base/callback.h" | 35 #include "base/callback.h" |
| 36 #include "base/files/file_path.h" | 36 #include "base/files/file_path.h" |
| 37 #include "base/sequenced_task_runner_helpers.h" | 37 #include "base/sequenced_task_runner_helpers.h" |
| 38 #include "base/time/time.h" | 38 #include "base/time/time.h" |
| 39 #include "content/public/browser/download_interrupt_reasons.h" | 39 #include "content/public/browser/download_interrupt_reasons.h" |
| 40 #include "content/public/browser/download_item.h" | 40 #include "content/public/browser/download_item.h" |
| 41 #include "content/public/browser/download_url_parameters.h" | 41 #include "content/public/browser/download_url_parameters.h" |
| 42 #include "net/base/net_errors.h" | 42 #include "net/base/net_errors.h" |
| 43 #include "net/log/net_log.h" | |
| 44 | 43 |
| 45 class GURL; | 44 class GURL; |
| 46 | 45 |
| 47 namespace url { | 46 namespace url { |
| 48 class Origin; | 47 class Origin; |
| 49 } | 48 } |
| 50 | 49 |
| 51 namespace content { | 50 namespace content { |
| 52 | 51 |
| 53 class BrowserContext; | 52 class BrowserContext; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // if you need to keep track of a specific download. (http://crbug.com/593020) | 187 // if you need to keep track of a specific download. (http://crbug.com/593020) |
| 189 virtual DownloadItem* GetDownload(uint32_t id) = 0; | 188 virtual DownloadItem* GetDownload(uint32_t id) = 0; |
| 190 | 189 |
| 191 // Get the download item for |guid|. | 190 // Get the download item for |guid|. |
| 192 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; | 191 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; |
| 193 }; | 192 }; |
| 194 | 193 |
| 195 } // namespace content | 194 } // namespace content |
| 196 | 195 |
| 197 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 196 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |