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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DownloadSaveInfo::offset is now int64. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/download/download_file.h" 9 #include "content/browser/download/download_file.h"
10 10
(...skipping 21 matching lines...) Expand all
32 size_t data_len) OVERRIDE; 32 size_t data_len) OVERRIDE;
33 virtual net::Error Rename(const FilePath& full_path) OVERRIDE; 33 virtual net::Error Rename(const FilePath& full_path) OVERRIDE;
34 virtual void Detach() OVERRIDE; 34 virtual void Detach() OVERRIDE;
35 virtual void Cancel() OVERRIDE; 35 virtual void Cancel() OVERRIDE;
36 virtual void Finish() OVERRIDE; 36 virtual void Finish() OVERRIDE;
37 virtual void AnnotateWithSourceInformation() OVERRIDE; 37 virtual void AnnotateWithSourceInformation() OVERRIDE;
38 virtual FilePath FullPath() const OVERRIDE; 38 virtual FilePath FullPath() const OVERRIDE;
39 virtual bool InProgress() const OVERRIDE; 39 virtual bool InProgress() const OVERRIDE;
40 virtual int64 BytesSoFar() const OVERRIDE; 40 virtual int64 BytesSoFar() const OVERRIDE;
41 virtual bool GetSha256Hash(std::string* hash) OVERRIDE; 41 virtual bool GetSha256Hash(std::string* hash) OVERRIDE;
42 virtual std::string GetSha256HashState() OVERRIDE;
Randy Smith (Not in Mondays) 2011/11/23 19:25:13 It occurs to me to wonder--if the underlying imple
42 virtual void CancelDownloadRequest() OVERRIDE; 43 virtual void CancelDownloadRequest() OVERRIDE;
43 virtual int Id() const OVERRIDE; 44 virtual int Id() const OVERRIDE;
44 virtual DownloadManager* GetDownloadManager() OVERRIDE; 45 virtual DownloadManager* GetDownloadManager() OVERRIDE;
45 virtual const DownloadId& GlobalId() const OVERRIDE; 46 virtual const DownloadId& GlobalId() const OVERRIDE;
46 virtual std::string DebugString() const OVERRIDE; 47 virtual std::string DebugString() const OVERRIDE;
47 48
48 private: 49 private:
49 // The base file instance. 50 // The base file instance.
50 BaseFile file_; 51 BaseFile file_;
51 52
52 // The unique identifier for this download, assigned at creation by 53 // The unique identifier for this download, assigned at creation by
53 // the DownloadFileManager for its internal record keeping. 54 // the DownloadFileManager for its internal record keeping.
54 DownloadId id_; 55 DownloadId id_;
55 56
56 // The handle to the request information. Used for operations outside the 57 // The handle to the request information. Used for operations outside the
57 // download system, specifically canceling a download. 58 // download system, specifically canceling a download.
58 scoped_ptr<DownloadRequestHandleInterface> request_handle_; 59 scoped_ptr<DownloadRequestHandleInterface> request_handle_;
59 60
60 // DownloadManager this download belongs to. 61 // DownloadManager this download belongs to.
61 scoped_refptr<DownloadManager> download_manager_; 62 scoped_refptr<DownloadManager> download_manager_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); 64 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl);
64 }; 65 };
65 66
66 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 67 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698