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

Unified Diff: content/browser/download/save_item.h

Issue 1373573002: ABANDONED: OOPIFs: Moving stitching of local paths from renderer to browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-recursive-begone
Patch Set: Rebasing... Created 5 years, 2 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/download/save_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_item.h
diff --git a/content/browser/download/save_item.h b/content/browser/download/save_item.h
index d7cbb4f0329ccb29fed9ba970690ec8c1faff064..f37ba97aa32620b88b55f99ea2e8255f03956341 100644
--- a/content/browser/download/save_item.h
+++ b/content/browser/download/save_item.h
@@ -18,15 +18,9 @@ class SavePackage;
// state for one save file.
class SaveItem {
public:
- enum SaveState {
- WAIT_START,
- IN_PROGRESS,
- COMPLETE,
- CANCELED
- };
+ enum SaveState { WAIT_START, IN_PROGRESS, COMPLETING, COMPLETE, CANCELED };
SaveItem(const GURL& url,
- const Referrer& referrer,
SavePackage* package,
SaveFileCreateInfo::SaveFileSource save_source);
@@ -54,6 +48,8 @@ class SaveItem {
void SetTotalBytes(int64 total_bytes);
+ void MarkAsCompleting();
+
// Accessors.
SaveState state() const { return state_; }
const base::FilePath& full_path() const { return full_path_; }
@@ -70,6 +66,9 @@ class SaveItem {
}
SavePackage* package() const { return package_; }
+ // Setters.
+ void set_referrer(const Referrer& referrer) { referrer_ = referrer; }
+
private:
// Internal helper for maintaining consistent received and total sizes.
void UpdateSize(int64 size);
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/download/save_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698