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 16 matching lines...) Expand all Loading... |
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 #pragma once | 29 #pragma once |
30 | 30 |
31 #include <string> | 31 #include <string> |
32 #include <vector> | 32 #include <vector> |
33 | 33 |
34 #include "base/basictypes.h" | 34 #include "base/basictypes.h" |
35 #include "base/file_path.h" | 35 #include "base/file_path.h" |
36 #include "base/gtest_prod_util.h" | 36 #include "base/gtest_prod_util.h" |
| 37 #include "base/message_loop_helpers.h" |
37 #include "base/time.h" | 38 #include "base/time.h" |
38 #include "content/browser/download/download_id.h" | 39 #include "content/browser/download/download_id.h" |
39 #include "content/browser/download/interrupt_reasons.h" | 40 #include "content/browser/download/interrupt_reasons.h" |
40 #include "content/public/browser/download_item.h" | 41 #include "content/public/browser/download_item.h" |
41 #include "content/public/browser/browser_thread.h" | 42 #include "content/public/browser/browser_thread.h" |
42 #include "net/base/net_errors.h" | 43 #include "net/base/net_errors.h" |
43 | 44 |
44 class DownloadFileManager; | 45 class DownloadFileManager; |
45 class DownloadManagerTest; | 46 class DownloadManagerTest; |
46 class DownloadRequestHandle; | 47 class DownloadRequestHandle; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 virtual void SetFileManager(DownloadFileManager* file_manager) = 0; | 257 virtual void SetFileManager(DownloadFileManager* file_manager) = 0; |
257 | 258 |
258 private: | 259 private: |
259 // For testing. | 260 // For testing. |
260 friend class ::DownloadManagerTest; | 261 friend class ::DownloadManagerTest; |
261 | 262 |
262 friend class base::RefCountedThreadSafe< | 263 friend class base::RefCountedThreadSafe< |
263 DownloadManager, content::BrowserThread::DeleteOnUIThread>; | 264 DownloadManager, content::BrowserThread::DeleteOnUIThread>; |
264 friend struct content::BrowserThread::DeleteOnThread< | 265 friend struct content::BrowserThread::DeleteOnThread< |
265 content::BrowserThread::UI>; | 266 content::BrowserThread::UI>; |
266 friend class DeleteTask<DownloadManager>; | 267 friend class base::DeleteHelper<DownloadManager>; |
267 }; | 268 }; |
268 | 269 |
269 } // namespace content | 270 } // namespace content |
270 | 271 |
271 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 272 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
OLD | NEW |