Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: content/browser/download/download_item_factory.h

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed content unit tests. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 DownloadItemFactory is used to produce different DownloadItems. 5 // The DownloadItemFactory is used to produce different DownloadItems.
6 // It is separate from the DownloadManager to allow download manager 6 // It is separate from the DownloadManager to allow download manager
7 // unit tests to control the items produced. 7 // unit tests to control the items produced.
8 8
9 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 9 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
10 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 10 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
(...skipping 28 matching lines...) Expand all
39 39
40 virtual DownloadItemImpl* CreatePersistedItem( 40 virtual DownloadItemImpl* CreatePersistedItem(
41 DownloadItemImplDelegate* delegate, 41 DownloadItemImplDelegate* delegate,
42 content::DownloadId download_id, 42 content::DownloadId download_id,
43 const content::DownloadPersistentStoreInfo& info, 43 const content::DownloadPersistentStoreInfo& info,
44 const net::BoundNetLog& bound_net_log) = 0; 44 const net::BoundNetLog& bound_net_log) = 0;
45 45
46 virtual DownloadItemImpl* CreateActiveItem( 46 virtual DownloadItemImpl* CreateActiveItem(
47 DownloadItemImplDelegate* delegate, 47 DownloadItemImplDelegate* delegate,
48 const DownloadCreateInfo& info, 48 const DownloadCreateInfo& info,
49 scoped_ptr<DownloadRequestHandleInterface> request_handle,
50 const net::BoundNetLog& bound_net_log) = 0; 49 const net::BoundNetLog& bound_net_log) = 0;
51 50
52 virtual DownloadItemImpl* CreateSavePageItem( 51 virtual DownloadItemImpl* CreateSavePageItem(
53 DownloadItemImplDelegate* delegate, 52 DownloadItemImplDelegate* delegate,
54 const FilePath& path, 53 const FilePath& path,
55 const GURL& url, 54 const GURL& url,
56 content::DownloadId download_id, 55 content::DownloadId download_id,
57 const std::string& mime_type, 56 const std::string& mime_type,
58 const net::BoundNetLog& bound_net_log) = 0; 57 const net::BoundNetLog& bound_net_log) = 0;
59 }; 58 };
60 59
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 62 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698