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

Side by Side Diff: content/browser/download/save_package.cc

Issue 1513293002: kFrameTreeNodeInvalidID -> kFrameTreeNodeInvalidId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix RFHM Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/download/save_package.h" 5 #include "content/browser/download/save_package.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 web_contents()->ForEachFrame(base::Bind( 1095 web_contents()->ForEachFrame(base::Bind(
1096 &SavePackage::GetSavableResourceLinksForFrame, 1096 &SavePackage::GetSavableResourceLinksForFrame,
1097 base::Unretained(this))); // Safe, because ForEachFrame is synchronous. 1097 base::Unretained(this))); // Safe, because ForEachFrame is synchronous.
1098 DCHECK_LT(0, number_of_frames_pending_response_); 1098 DCHECK_LT(0, number_of_frames_pending_response_);
1099 1099
1100 // Enqueue the main frame separately (because this frame won't show up in any 1100 // Enqueue the main frame separately (because this frame won't show up in any
1101 // of OnSavableResourceLinksResponse callbacks). 1101 // of OnSavableResourceLinksResponse callbacks).
1102 FrameTreeNode* main_frame_tree_node = 1102 FrameTreeNode* main_frame_tree_node =
1103 static_cast<RenderFrameHostImpl*>(web_contents()->GetMainFrame()) 1103 static_cast<RenderFrameHostImpl*>(web_contents()->GetMainFrame())
1104 ->frame_tree_node(); 1104 ->frame_tree_node();
1105 EnqueueFrame(FrameTreeNode::kFrameTreeNodeInvalidID, // No container. 1105 EnqueueFrame(FrameTreeNode::kFrameTreeNodeInvalidId, // No container.
1106 main_frame_tree_node->frame_tree_node_id(), 1106 main_frame_tree_node->frame_tree_node_id(),
1107 main_frame_tree_node->current_url()); 1107 main_frame_tree_node->current_url());
1108 } 1108 }
1109 1109
1110 void SavePackage::GetSavableResourceLinksForFrame(RenderFrameHost* target) { 1110 void SavePackage::GetSavableResourceLinksForFrame(RenderFrameHost* target) {
1111 number_of_frames_pending_response_++; 1111 number_of_frames_pending_response_++;
1112 target->Send(new FrameMsg_GetSavableResourceLinks(target->GetRoutingID())); 1112 target->Send(new FrameMsg_GetSavableResourceLinks(target->GetRoutingID()));
1113 } 1113 }
1114 1114
1115 void SavePackage::OnSavableResourceLinksResponse( 1115 void SavePackage::OnSavableResourceLinksResponse(
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 1492
1493 void SavePackage::FinalizeDownloadEntry() { 1493 void SavePackage::FinalizeDownloadEntry() {
1494 DCHECK(download_); 1494 DCHECK(download_);
1495 DCHECK(download_manager_); 1495 DCHECK(download_manager_);
1496 1496
1497 download_manager_->OnSavePackageSuccessfullyFinished(download_); 1497 download_manager_->OnSavePackageSuccessfullyFinished(download_);
1498 StopObservation(); 1498 StopObservation();
1499 } 1499 }
1500 1500
1501 } // namespace content 1501 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698