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

Side by Side Diff: chrome/browser/task_manager.cc

Issue 466088: Revert 34146 - A place to store the pid>mach_port_t mapping.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/task_manager.h ('k') | chrome/chrome.gyp » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/task_manager.h" 5 #include "chrome/browser/task_manager.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 // notifications. Every time we get notified some bytes were read we bump a 763 // notifications. Every time we get notified some bytes were read we bump a
764 // counter of read bytes for the associated resource. When the timer ticks, 764 // counter of read bytes for the associated resource. When the timer ticks,
765 // we'll compute the actual network usage (see the Refresh method). 765 // we'll compute the actual network usage (see the Refresh method).
766 void TaskManagerModel::OnJobAdded(URLRequestJob* job) { 766 void TaskManagerModel::OnJobAdded(URLRequestJob* job) {
767 } 767 }
768 768
769 void TaskManagerModel::OnJobRemoved(URLRequestJob* job) { 769 void TaskManagerModel::OnJobRemoved(URLRequestJob* job) {
770 } 770 }
771 771
772 void TaskManagerModel::OnJobDone(URLRequestJob* job, 772 void TaskManagerModel::OnJobDone(URLRequestJob* job,
773 const URLRequestStatus& status) { 773 const URLRequestStatus& status) {
774 } 774 }
775 775
776 void TaskManagerModel::OnJobRedirect(URLRequestJob* job, 776 void TaskManagerModel::OnJobRedirect(URLRequestJob* job,
777 const GURL& location, 777 const GURL& location,
778 int status_code) { 778 int status_code) {
779 } 779 }
780 780
781 void TaskManagerModel::OnBytesRead(URLRequestJob* job, int byte_count) { 781 void TaskManagerModel::OnBytesRead(URLRequestJob* job, int byte_count) {
782 int render_process_host_child_id = -1, routing_id = -1; 782 int render_process_host_child_id = -1, routing_id = -1;
783 ResourceDispatcherHost::RenderViewForRequest(job->request(), 783 ResourceDispatcherHost::RenderViewForRequest(job->request(),
784 &render_process_host_child_id, 784 &render_process_host_child_id,
785 &routing_id); 785 &routing_id);
786 // This happens in the IO thread, post it to the UI thread. 786 // This happens in the IO thread, post it to the UI thread.
787 int origin_child_id = 787 int origin_child_id =
788 chrome_browser_net::GetOriginProcessUniqueIDForRequest(job->request()); 788 chrome_browser_net::GetOriginProcessUniqueIDForRequest(job->request());
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 // or popup, we can only have one tab, hence we need to process this in a 884 // or popup, we can only have one tab, hence we need to process this in a
885 // tabbed browser window. Currently, |browser| is pointing to the application, 885 // tabbed browser window. Currently, |browser| is pointing to the application,
886 // popup window. Therefore, we have to retrieve the last active tab again, 886 // popup window. Therefore, we have to retrieve the last active tab again,
887 // since a new window has been used. 887 // since a new window has been used.
888 if (browser->type() & Browser::TYPE_APP_POPUP) { 888 if (browser->type() & Browser::TYPE_APP_POPUP) {
889 browser = BrowserList::GetLastActive(); 889 browser = BrowserList::GetLastActive();
890 DCHECK(browser); 890 DCHECK(browser);
891 } 891 }
892 browser->window()->Show(); 892 browser->window()->Show();
893 } 893 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698