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

Unified Diff: content/browser/download/save_file_resource_handler.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
Index: content/browser/download/save_file_resource_handler.h
diff --git a/content/browser/download/save_file_resource_handler.h b/content/browser/download/save_file_resource_handler.h
index 2c7f4e61c93e8daf21a8b0d9fd336fd66afa2a6e..e559e44a63e8a79e330ae94f269eb7e1e79a891e 100644
--- a/content/browser/download/save_file_resource_handler.h
+++ b/content/browser/download/save_file_resource_handler.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "content/browser/download/save_types.h"
#include "content/browser/loader/resource_handler.h"
#include "url/gurl.h"
@@ -25,8 +26,8 @@ class SaveFileManager;
class SaveFileResourceHandler : public ResourceHandler {
public:
SaveFileResourceHandler(net::URLRequest* request,
- int save_item_id,
- int save_package_id,
+ SaveItemId save_item_id,
+ SavePackageId save_package_id,
int render_process_host_id,
int render_frame_routing_id,
const GURL& url,
@@ -76,8 +77,8 @@ class SaveFileResourceHandler : public ResourceHandler {
}
private:
- int save_item_id_;
- int save_package_id_;
+ SaveItemId save_item_id_;
+ SavePackageId save_package_id_;
int render_process_id_;
int render_frame_routing_id_;
scoped_refptr<net::IOBuffer> read_buffer_;
« no previous file with comments | « content/browser/download/save_file_manager.cc ('k') | content/browser/download/save_file_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698