summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/save_package.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 01:55:13 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 01:55:13 +0000
commit4566f13fe843c0821dbce19d7ea5e8aece8afe4a (patch)
tree586c6006431604f6b159daca30fcdfe4913ad996 /chrome/browser/download/save_package.cc
parent3f366001f70b1ef4b8884796970cefb0769c469f (diff)
downloadchromium_src-4566f13fe843c0821dbce19d7ea5e8aece8afe4a.zip
chromium_src-4566f13fe843c0821dbce19d7ea5e8aece8afe4a.tar.gz
chromium_src-4566f13fe843c0821dbce19d7ea5e8aece8afe4a.tar.bz2
Stop having renderers use both pids and a monotonically increasing "host_id". This allows ResourceDispatcher to be used by child processes other than renderers. I've done minor related cleanup on the way to make the code simpler.
Review URL: http://codereview.chromium.org/42054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/save_package.cc')
-rw-r--r--chrome/browser/download/save_package.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc
index 158432d..d81e44b 100644
--- a/chrome/browser/download/save_package.cc
+++ b/chrome/browser/download/save_package.cc
@@ -156,7 +156,7 @@ SavePackage::SavePackage(WebContents* web_content,
save_type_(save_type),
all_save_items_count_(0),
wait_state_(INITIALIZE),
- tab_id_(web_content->process()->host_id()) {
+ tab_id_(web_content->process()->pid()) {
DCHECK(web_content);
const GURL& current_page_url = web_contents_->GetURL();
DCHECK(current_page_url.is_valid());
@@ -578,7 +578,7 @@ void SavePackage::CheckFinish() {
&SaveFileManager::RenameAllFiles,
final_names,
dir,
- web_contents_->process()->host_id(),
+ web_contents_->process()->pid(),
web_contents_->render_view_host()->routing_id()));
}
@@ -716,7 +716,7 @@ void SavePackage::SaveNextFile(bool process_all_remaining_items) {
save_item->Start();
file_manager_->SaveURL(save_item->url(),
save_item->referrer(),
- web_contents_->process()->host_id(),
+ web_contents_->process()->pid(),
web_contents_->render_view_host()->routing_id(),
save_item->save_source(),
save_item->full_path(),