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_FILE_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ |
7 | 7 |
8 #include "base/file_path.h" | |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
12 #include "content/browser/download/download_create_info.h" | |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 class BoundNetLog; | 16 class BoundNetLog; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 struct DownloadSaveInfo; | 21 struct DownloadSaveInfo; |
22 | 22 |
23 class ByteStreamReader; | 23 class ByteStreamReader; |
24 class DownloadDestinationObserver; | 24 class DownloadDestinationObserver; |
25 class DownloadFile; | 25 class DownloadFile; |
26 class DownloadManager; | 26 class DownloadManager; |
27 | 27 |
28 class CONTENT_EXPORT DownloadFileFactory { | 28 class CONTENT_EXPORT DownloadFileFactory { |
29 public: | 29 public: |
30 virtual ~DownloadFileFactory(); | 30 virtual ~DownloadFileFactory(); |
31 | 31 |
32 virtual content::DownloadFile* CreateFile( | 32 virtual content::DownloadFile* CreateFile( |
33 DownloadCreateInfo* info, | 33 const content::DownloadSaveInfo& save_info, |
asanka
2012/09/28 20:22:42
Here's that extra content:: namespace again :)
Randy Smith (Not in Mondays)
2012/10/09 20:20:19
Indeed. Just when you think you've gotten rid of
| |
34 scoped_ptr<content::ByteStreamReader> stream, | 34 const FilePath& default_downloads_directory, |
35 DownloadManager* download_manager, | 35 GURL url, |
36 bool calculate_hash, | 36 GURL referrer_url, |
37 const net::BoundNetLog& bound_net_log); | 37 int64 received_bytes, |
38 bool calculate_hash, | |
39 scoped_ptr<content::ByteStreamReader> stream, | |
40 const net::BoundNetLog& bound_net_log, | |
41 base::WeakPtr<content::DownloadDestinationObserver> observer); | |
38 }; | 42 }; |
39 | 43 |
40 } // namespace content | 44 } // namespace content |
41 | 45 |
42 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ | 46 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ |
OLD | NEW |