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

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

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/task_manager.h" 5 #include "chrome/browser/task_manager/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"
11 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 // notifications. Every time we get notified some bytes were read we bump a 870 // notifications. Every time we get notified some bytes were read we bump a
871 // counter of read bytes for the associated resource. When the timer ticks, 871 // counter of read bytes for the associated resource. When the timer ticks,
872 // we'll compute the actual network usage (see the Refresh method). 872 // we'll compute the actual network usage (see the Refresh method).
873 void TaskManagerModel::OnJobAdded(net::URLRequestJob* job) { 873 void TaskManagerModel::OnJobAdded(net::URLRequestJob* job) {
874 } 874 }
875 875
876 void TaskManagerModel::OnJobRemoved(net::URLRequestJob* job) { 876 void TaskManagerModel::OnJobRemoved(net::URLRequestJob* job) {
877 } 877 }
878 878
879 void TaskManagerModel::OnJobDone(net::URLRequestJob* job, 879 void TaskManagerModel::OnJobDone(net::URLRequestJob* job,
880 const URLRequestStatus& status) { 880 const net::URLRequestStatus& status) {
881 } 881 }
882 882
883 void TaskManagerModel::OnJobRedirect(net::URLRequestJob* job, 883 void TaskManagerModel::OnJobRedirect(net::URLRequestJob* job,
884 const GURL& location, 884 const GURL& location,
885 int status_code) { 885 int status_code) {
886 } 886 }
887 887
888 void TaskManagerModel::OnBytesRead(net::URLRequestJob* job, const char* buf, 888 void TaskManagerModel::OnBytesRead(net::URLRequestJob* job, const char* buf,
889 int byte_count) { 889 int byte_count) {
890 int render_process_host_child_id = -1, routing_id = -1; 890 int render_process_host_child_id = -1, routing_id = -1;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 MetricsMap::const_iterator iter = metrics_map_.find(handle); 1025 MetricsMap::const_iterator iter = metrics_map_.find(handle);
1026 if (iter == metrics_map_.end()) 1026 if (iter == metrics_map_.end())
1027 return false; 1027 return false;
1028 1028
1029 if (!iter->second->GetMemoryBytes(&usage->first, &usage->second)) 1029 if (!iter->second->GetMemoryBytes(&usage->first, &usage->second))
1030 return false; 1030 return false;
1031 1031
1032 memory_usage_map_.insert(std::make_pair(handle, *usage)); 1032 memory_usage_map_.insert(std::make_pair(handle, *usage));
1033 return true; 1033 return true;
1034 } 1034 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/signin_manager_unittest.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698