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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 namespace content { | 26 namespace content { |
27 class DownloadFileFactory; | 27 class DownloadFileFactory; |
28 class DownloadItemFactory; | 28 class DownloadItemFactory; |
29 class DownloadItemImpl; | 29 class DownloadItemImpl; |
30 | 30 |
31 class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager, | 31 class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager, |
32 private DownloadItemImplDelegate { | 32 private DownloadItemImplDelegate { |
33 public: | 33 public: |
34 // Caller guarantees that |net_log| will remain valid | 34 // Caller guarantees that |net_log| will remain valid |
35 // for the lifetime of DownloadManagerImpl (until Shutdown() is called). | 35 // for the lifetime of DownloadManagerImpl (until Shutdown() is called). |
36 DownloadManagerImpl(net::NetLog* net_log); | 36 explicit DownloadManagerImpl(net::NetLog* net_log); |
37 | 37 |
38 // Implementation functions (not part of the DownloadManager interface). | 38 // Implementation functions (not part of the DownloadManager interface). |
39 | 39 |
40 // Creates a download item for the SavePackage system. | 40 // Creates a download item for the SavePackage system. |
41 // Must be called on the UI thread. Note that the DownloadManager | 41 // Must be called on the UI thread. Note that the DownloadManager |
42 // retains ownership. | 42 // retains ownership. |
43 virtual DownloadItemImpl* CreateSavePackageDownloadItem( | 43 virtual DownloadItemImpl* CreateSavePackageDownloadItem( |
44 const FilePath& main_file_path, | 44 const FilePath& main_file_path, |
45 const GURL& page_url, | 45 const GURL& page_url, |
46 const std::string& mime_type, | 46 const std::string& mime_type, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 DownloadManagerDelegate* delegate_; | 158 DownloadManagerDelegate* delegate_; |
159 | 159 |
160 net::NetLog* net_log_; | 160 net::NetLog* net_log_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 162 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace content | 165 } // namespace content |
166 | 166 |
167 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 167 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |