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 25 matching lines...) Expand all Loading... |
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 | 43 |
44 class GURL; | 44 class GURL; |
45 | 45 |
46 namespace url { | |
47 class Origin; | |
48 } | |
49 | |
50 namespace content { | 46 namespace content { |
51 | 47 |
52 class BrowserContext; | 48 class BrowserContext; |
53 class ByteStreamReader; | 49 class ByteStreamReader; |
54 class DownloadManagerDelegate; | 50 class DownloadManagerDelegate; |
55 class DownloadQuery; | |
56 class DownloadRequestHandle; | |
57 struct DownloadCreateInfo; | 51 struct DownloadCreateInfo; |
58 | 52 |
59 // Browser's download manager: manages all downloads and destination view. | 53 // Browser's download manager: manages all downloads and destination view. |
60 class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data { | 54 class CONTENT_EXPORT DownloadManager : public base::SupportsUserData::Data { |
61 public: | 55 public: |
62 ~DownloadManager() override {} | 56 ~DownloadManager() override {} |
63 | 57 |
64 // Sets/Gets the delegate for this DownloadManager. The delegate has to live | 58 // Sets/Gets the delegate for this DownloadManager. The delegate has to live |
65 // past its Shutdown method being called (by the DownloadManager). | 59 // past its Shutdown method being called (by the DownloadManager). |
66 virtual void SetDelegate(DownloadManagerDelegate* delegate) = 0; | 60 virtual void SetDelegate(DownloadManagerDelegate* delegate) = 0; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // if you need to keep track of a specific download. (http://crbug.com/593020) | 181 // if you need to keep track of a specific download. (http://crbug.com/593020) |
188 virtual DownloadItem* GetDownload(uint32_t id) = 0; | 182 virtual DownloadItem* GetDownload(uint32_t id) = 0; |
189 | 183 |
190 // Get the download item for |guid|. | 184 // Get the download item for |guid|. |
191 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; | 185 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; |
192 }; | 186 }; |
193 | 187 |
194 } // namespace content | 188 } // namespace content |
195 | 189 |
196 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 190 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
OLD | NEW |