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

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

Issue 1529363006: Introducing SavePackageId and SaveItemId as distinct IdType<...>-based types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from Daniel. Created 4 years, 11 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/download/save_file_resource_handler.cc ('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 842cd03a34aa42b0823218e870b8e572bd431c1c..b0e655da71e087d406761c90133836635a518333 100644
--- a/content/browser/download/save_item.h
+++ b/content/browser/download/save_item.h
@@ -55,7 +55,7 @@ class SaveItem {
void SetTotalBytes(int64_t total_bytes);
// Accessors.
- int id() const { return save_item_id_; }
+ SaveItemId id() const { return save_item_id_; }
SaveState state() const { return state_; }
const base::FilePath& full_path() const { return full_path_; }
const base::FilePath& file_name() const { return file_name_; }
@@ -75,7 +75,7 @@ class SaveItem {
void UpdateSize(int64_t size);
// Unique identifier for this SaveItem instance.
- const int save_item_id_;
+ const SaveItemId save_item_id_;
// Full path to the save item file.
base::FilePath full_path_;
« no previous file with comments | « content/browser/download/save_file_resource_handler.cc ('k') | content/browser/download/save_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698