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

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

Issue 2799333002: Clear the received slices in DownloadItemImpl when etag changed. (Closed)
Patch Set: Address the uma issue. Created 3 years, 8 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_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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file.h" 11 #include "base/files/file.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/browser/download_item.h"
17 #include "url/gurl.h" 16 #include "url/gurl.h"
18 17
19 namespace net { 18 namespace net {
20 class NetLogWithSource; 19 class NetLogWithSource;
21 } 20 }
22 21
23 namespace content { 22 namespace content {
24 23
25 class ByteStreamReader; 24 class ByteStreamReader;
26 class DownloadDestinationObserver; 25 class DownloadDestinationObserver;
27 class DownloadFile; 26 class DownloadFile;
28 struct DownloadSaveInfo; 27 struct DownloadSaveInfo;
29 28
30 class CONTENT_EXPORT DownloadFileFactory { 29 class CONTENT_EXPORT DownloadFileFactory {
31 public: 30 public:
32 virtual ~DownloadFileFactory(); 31 virtual ~DownloadFileFactory();
33 32
34 virtual DownloadFile* CreateFile( 33 virtual DownloadFile* CreateFile(
35 std::unique_ptr<DownloadSaveInfo> save_info, 34 std::unique_ptr<DownloadSaveInfo> save_info,
36 const base::FilePath& default_downloads_directory, 35 const base::FilePath& default_downloads_directory,
37 std::unique_ptr<ByteStreamReader> byte_stream, 36 std::unique_ptr<ByteStreamReader> byte_stream,
38 const std::vector<DownloadItem::ReceivedSlice>& received_slices,
39 const net::NetLogWithSource& net_log, 37 const net::NetLogWithSource& net_log,
40 base::WeakPtr<DownloadDestinationObserver> observer); 38 base::WeakPtr<DownloadDestinationObserver> observer);
41 }; 39 };
42 40
43 } // namespace content 41 } // namespace content
44 42
45 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ 43 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_file.h ('k') | content/browser/download/download_file_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698