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

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

Issue 319703002: Add mime type information to the download database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DownloadUIController_HistoryDownload test failure Created 6 years, 6 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
« no previous file with comments | « chrome/test/data/History/history.28.sql ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
37 public: 37 public:
38 virtual ~DownloadItemFactory() {} 38 virtual ~DownloadItemFactory() {}
39 39
40 virtual DownloadItemImpl* CreatePersistedItem( 40 virtual DownloadItemImpl* CreatePersistedItem(
41 DownloadItemImplDelegate* delegate, 41 DownloadItemImplDelegate* delegate,
42 uint32 download_id, 42 uint32 download_id,
43 const base::FilePath& current_path, 43 const base::FilePath& current_path,
44 const base::FilePath& target_path, 44 const base::FilePath& target_path,
45 const std::vector<GURL>& url_chain, 45 const std::vector<GURL>& url_chain,
46 const GURL& referrer_url, 46 const GURL& referrer_url,
47 const std::string& mime_type,
48 const std::string& original_mime_type,
47 const base::Time& start_time, 49 const base::Time& start_time,
48 const base::Time& end_time, 50 const base::Time& end_time,
49 const std::string& etag, 51 const std::string& etag,
50 const std::string& last_modified, 52 const std::string& last_modified,
51 int64 received_bytes, 53 int64 received_bytes,
52 int64 total_bytes, 54 int64 total_bytes,
53 DownloadItem::DownloadState state, 55 DownloadItem::DownloadState state,
54 DownloadDangerType danger_type, 56 DownloadDangerType danger_type,
55 DownloadInterruptReason interrupt_reason, 57 DownloadInterruptReason interrupt_reason,
56 bool opened, 58 bool opened,
(...skipping 11 matching lines...) Expand all
68 const base::FilePath& path, 70 const base::FilePath& path,
69 const GURL& url, 71 const GURL& url,
70 const std::string& mime_type, 72 const std::string& mime_type,
71 scoped_ptr<DownloadRequestHandleInterface> request_handle, 73 scoped_ptr<DownloadRequestHandleInterface> request_handle,
72 const net::BoundNetLog& bound_net_log) = 0; 74 const net::BoundNetLog& bound_net_log) = 0;
73 }; 75 };
74 76
75 } // namespace content 77 } // namespace content
76 78
77 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 79 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/test/data/History/history.28.sql ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698