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 #include <string> |
10 | 11 |
11 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
16 #include "base/sequenced_task_runner_helpers.h" | 17 #include "base/sequenced_task_runner_helpers.h" |
17 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
18 #include "content/browser/download/download_item_impl_delegate.h" | 19 #include "content/browser/download/download_item_impl_delegate.h" |
19 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual int RemoveAllDownloads() OVERRIDE; | 72 virtual int RemoveAllDownloads() OVERRIDE; |
72 virtual void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) OVERRIDE; | 73 virtual void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) OVERRIDE; |
73 virtual void AddObserver(Observer* observer) OVERRIDE; | 74 virtual void AddObserver(Observer* observer) OVERRIDE; |
74 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 75 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
75 virtual content::DownloadItem* CreateDownloadItem( | 76 virtual content::DownloadItem* CreateDownloadItem( |
76 uint32 id, | 77 uint32 id, |
77 const base::FilePath& current_path, | 78 const base::FilePath& current_path, |
78 const base::FilePath& target_path, | 79 const base::FilePath& target_path, |
79 const std::vector<GURL>& url_chain, | 80 const std::vector<GURL>& url_chain, |
80 const GURL& referrer_url, | 81 const GURL& referrer_url, |
| 82 const std::string& mime_type, |
| 83 const std::string& original_mime_type, |
81 const base::Time& start_time, | 84 const base::Time& start_time, |
82 const base::Time& end_time, | 85 const base::Time& end_time, |
83 const std::string& etag, | 86 const std::string& etag, |
84 const std::string& last_modified, | 87 const std::string& last_modified, |
85 int64 received_bytes, | 88 int64 received_bytes, |
86 int64 total_bytes, | 89 int64 total_bytes, |
87 content::DownloadItem::DownloadState state, | 90 content::DownloadItem::DownloadState state, |
88 DownloadDangerType danger_type, | 91 DownloadDangerType danger_type, |
89 DownloadInterruptReason interrupt_reason, | 92 DownloadInterruptReason interrupt_reason, |
90 bool opened) OVERRIDE; | 93 bool opened) OVERRIDE; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 net::NetLog* net_log_; | 190 net::NetLog* net_log_; |
188 | 191 |
189 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; | 192 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; |
190 | 193 |
191 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); | 194 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); |
192 }; | 195 }; |
193 | 196 |
194 } // namespace content | 197 } // namespace content |
195 | 198 |
196 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ | 199 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ |
OLD | NEW |