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 17 matching lines...) Expand all Loading... |
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" | 36 #include "base/gtest_prod_util.h" |
37 #include "base/sequenced_task_runner_helpers.h" | 37 #include "base/sequenced_task_runner_helpers.h" |
38 #include "base/time.h" | 38 #include "base/time/time.h" |
39 #include "content/public/browser/download_id.h" | 39 #include "content/public/browser/download_id.h" |
40 #include "content/public/browser/download_interrupt_reasons.h" | 40 #include "content/public/browser/download_interrupt_reasons.h" |
41 #include "content/public/browser/download_item.h" | 41 #include "content/public/browser/download_item.h" |
42 #include "net/base/net_errors.h" | 42 #include "net/base/net_errors.h" |
43 #include "net/base/net_log.h" | 43 #include "net/base/net_log.h" |
44 | 44 |
45 class GURL; | 45 class GURL; |
46 | 46 |
47 namespace content { | 47 namespace content { |
48 | 48 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 virtual void CheckForHistoryFilesRemoval() = 0; | 164 virtual void CheckForHistoryFilesRemoval() = 0; |
165 | 165 |
166 // Get the download item for |id| if present, no matter what type of download | 166 // Get the download item for |id| if present, no matter what type of download |
167 // it is or state it's in. | 167 // it is or state it's in. |
168 virtual DownloadItem* GetDownload(int id) = 0; | 168 virtual DownloadItem* GetDownload(int id) = 0; |
169 }; | 169 }; |
170 | 170 |
171 } // namespace content | 171 } // namespace content |
172 | 172 |
173 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 173 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
OLD | NEW |