diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 22:25:37 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 22:25:37 +0000 |
commit | 336870f3ec778c3677edc16395aaaa042f05e140 (patch) | |
tree | 0efe3357e2464be8f6a6843cebe6c671a9d3ceb2 /chrome/browser/task_manager.cc | |
parent | da71fd2d44c8f5367de6b921948d9e19bdf58b8d (diff) | |
download | chromium_src-336870f3ec778c3677edc16395aaaa042f05e140.zip chromium_src-336870f3ec778c3677edc16395aaaa042f05e140.tar.gz chromium_src-336870f3ec778c3677edc16395aaaa042f05e140.tar.bz2 |
Move GetTabContentsID out of tab util because it has nothing to do with tabs or
TabContents. I put a more accurately named static function in
ResourceDispatcherHost which is what really controls this request data.
I also moved a couple of static functions from the header to the cc in
resource_dispatcher.
Review URL: http://codereview.chromium.org/150124
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.cc')
-rw-r--r-- | chrome/browser/task_manager.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc index 0a671e3..d80d51c 100644 --- a/chrome/browser/task_manager.cc +++ b/chrome/browser/task_manager.cc @@ -14,8 +14,8 @@ #include "chrome/browser/browser_list.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/renderer_host/render_process_host.h" +#include "chrome/browser/renderer_host/resource_dispatcher_host.h" #include "chrome/browser/task_manager_resource_providers.h" -#include "chrome/browser/tab_contents/tab_util.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" #include "grit/app_resources.h" @@ -654,8 +654,9 @@ void TaskManagerModel::OnJobRedirect(URLRequestJob* job, void TaskManagerModel::OnBytesRead(URLRequestJob* job, int byte_count) { int render_process_host_id = -1, routing_id = -1; - tab_util::GetTabContentsID(job->request(), - &render_process_host_id, &routing_id); + ResourceDispatcherHost::RenderViewForRequest(job->request(), + &render_process_host_id, + &routing_id); // This happens in the IO thread, post it to the UI thread. ui_loop_->PostTask(FROM_HERE, NewRunnableMethod( |