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

Unified Diff: chrome/browser/download/base_file.h

Issue 3127008: Preliminary work on resuming downloads whose connections have expired.
Patch Set: Waiting to send download automation error message until after other downloads are canceled. Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/base_file.h
diff --git a/chrome/browser/download/base_file.h b/chrome/browser/download/base_file.h
index 6c57165d5949c7fa149a39d01aef11830b46a696..c38b909862b7f3dc1b7d1f97b2b574a831a7bd63 100644
--- a/chrome/browser/download/base_file.h
+++ b/chrome/browser/download/base_file.h
@@ -27,6 +27,7 @@ class BaseFile {
~BaseFile();
bool Initialize();
+ bool ReOpen();
Paweł Hajdan Jr. 2010/10/01 09:03:55 Please add comment.
// Write a new chunk of data to the file. Returns true on success (all bytes
// written to the file).
@@ -51,6 +52,9 @@ class BaseFile {
bool in_progress() const { return file_stream_ != NULL; }
int64 bytes_so_far() const { return bytes_so_far_; }
+ // Determines if this DownloadItem matches the |url| and |path|.
+ bool MatchesUrlAndPath(const GURL& url, const FilePath& path) const;
Paweł Hajdan Jr. 2010/10/01 09:03:55 This is wrong, as said in http://codereview.chromi
+
protected:
bool Open();
void Close();

Powered by Google App Engine
This is Rietveld 408576698