| 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 18 matching lines...) Expand all Loading... |
| 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/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/sequenced_task_runner_helpers.h" | 37 #include "base/sequenced_task_runner_helpers.h" |
| 38 #include "base/time.h" | 38 #include "base/time.h" |
| 39 #include "content/public/browser/browser_thread.h" | |
| 40 #include "content/public/browser/download_id.h" | 39 #include "content/public/browser/download_id.h" |
| 41 #include "content/public/browser/download_interrupt_reasons.h" | 40 #include "content/public/browser/download_interrupt_reasons.h" |
| 42 #include "content/public/browser/download_item.h" | 41 #include "content/public/browser/download_item.h" |
| 43 #include "net/base/net_errors.h" | 42 #include "net/base/net_errors.h" |
| 44 #include "net/base/net_log.h" | 43 #include "net/base/net_log.h" |
| 45 | 44 |
| 46 class GURL; | 45 class GURL; |
| 47 | 46 |
| 48 namespace content { | 47 namespace content { |
| 49 | 48 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 protected: | 169 protected: |
| 171 virtual ~DownloadManager() {} | 170 virtual ~DownloadManager() {} |
| 172 | 171 |
| 173 private: | 172 private: |
| 174 friend class base::RefCountedThreadSafe<DownloadManager>; | 173 friend class base::RefCountedThreadSafe<DownloadManager>; |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 } // namespace content | 176 } // namespace content |
| 178 | 177 |
| 179 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 178 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |