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

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

Issue 1751603002: [Downloads] Rework how hashes are calculated for download files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of https://codereview.chromium.org/1781983002 since that's going in first. Created 4 years, 9 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 #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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const std::vector<GURL>& url_chain, 89 const std::vector<GURL>& url_chain,
90 const GURL& referrer_url, 90 const GURL& referrer_url,
91 const std::string& mime_type, 91 const std::string& mime_type,
92 const std::string& original_mime_type, 92 const std::string& original_mime_type,
93 const base::Time& start_time, 93 const base::Time& start_time,
94 const base::Time& end_time, 94 const base::Time& end_time,
95 const std::string& etag, 95 const std::string& etag,
96 const std::string& last_modified, 96 const std::string& last_modified,
97 int64_t received_bytes, 97 int64_t received_bytes,
98 int64_t total_bytes, 98 int64_t total_bytes,
99 const std::string& hash,
99 content::DownloadItem::DownloadState state, 100 content::DownloadItem::DownloadState state,
100 DownloadDangerType danger_type, 101 DownloadDangerType danger_type,
101 DownloadInterruptReason interrupt_reason, 102 DownloadInterruptReason interrupt_reason,
102 bool opened) override; 103 bool opened) override;
103 int InProgressCount() const override; 104 int InProgressCount() const override;
104 int NonMaliciousInProgressCount() const override; 105 int NonMaliciousInProgressCount() const override;
105 BrowserContext* GetBrowserContext() const override; 106 BrowserContext* GetBrowserContext() const override;
106 void CheckForHistoryFilesRemoval() override; 107 void CheckForHistoryFilesRemoval() override;
107 DownloadItem* GetDownload(uint32_t id) override; 108 DownloadItem* GetDownload(uint32_t id) override;
108 DownloadItem* GetDownloadByGuid(const std::string& guid) override; 109 DownloadItem* GetDownloadByGuid(const std::string& guid) override;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 url_downloaders_; 220 url_downloaders_;
220 221
221 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; 222 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_;
222 223
223 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 224 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
224 }; 225 };
225 226
226 } // namespace content 227 } // namespace content
227 228
228 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 229 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl_unittest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698