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

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

Issue 2075273002: Resource requests from Save-Page-As should go through CanRequestURL checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace MarkAsUnauthorized with constructor argument. Created 4 years, 5 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 15b5495ba2edf4d4309882a217a2c3af62dbafd3..049c7f3936a7a6a023904d409dc31a5661b743a7 100644
--- a/content/browser/download/save_item.h
+++ b/content/browser/download/save_item.h
@@ -31,7 +31,8 @@ class SaveItem {
const Referrer& referrer,
SavePackage* package,
SaveFileCreateInfo::SaveFileSource save_source,
- int frame_tree_node_id);
+ int frame_tree_node_id,
+ int container_frame_tree_node_id);
~SaveItem();
@@ -58,6 +59,9 @@ class SaveItem {
const GURL& url() const { return url_; }
const Referrer& referrer() const { return referrer_; }
int frame_tree_node_id() const { return frame_tree_node_id_; }
+ int container_frame_tree_node_id() const {
+ return container_frame_tree_node_id_;
+ }
int64_t received_bytes() const { return received_bytes_; }
bool has_final_name() const { return !full_path_.empty(); }
bool success() const { return is_success_; }
@@ -80,9 +84,14 @@ class SaveItem {
Referrer referrer_;
// Frame tree node id, if this save item represents a frame
- // (otherwise FrameTreeNode::kFrameTreeNodeInvalidID).
+ // (otherwise FrameTreeNode::kFrameTreeNodeInvalidId).
int frame_tree_node_id_;
+ // Frame tree node id of the frame containing this save item.
+ // (FrameTreeNode::kFrameTreeNodeInvalidId if this save item represents the
+ // main frame, which obviously doesn't have a containing/parent frame).
+ int container_frame_tree_node_id_;
+
// Total bytes expected.
int64_t total_bytes_;
« 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