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

Unified Diff: chrome/browser/task_manager/sampling/task_manager_impl.h

Issue 2964543002: TaskManager: use an unordered_map for tracking network usage (Closed)
Patch Set: fixed nits from lgtm Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/task_manager/sampling/task_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/sampling/task_manager_impl.h
diff --git a/chrome/browser/task_manager/sampling/task_manager_impl.h b/chrome/browser/task_manager/sampling/task_manager_impl.h
index 5e1ef98f6cfa460acf1c7530dd90f2521321a3cd..ded26689a160c7219548d86327796073ad4aadba 100644
--- a/chrome/browser/task_manager/sampling/task_manager_impl.h
+++ b/chrome/browser/task_manager/sampling/task_manager_impl.h
@@ -99,8 +99,7 @@ class TaskManagerImpl : public TaskManagerInterface,
// The notification method on the UI thread when multiple bytes are
// transferred from URLRequests. This will be called by the
// |io_thread_helper_|
- static void OnMultipleBytesTransferredUI(
- std::vector<BytesTransferredParam>* params);
+ static void OnMultipleBytesTransferredUI(BytesTransferredMap params);
private:
friend struct base::LazyInstanceTraitsBase<TaskManagerImpl>;
@@ -123,7 +122,8 @@ class TaskManagerImpl : public TaskManagerInterface,
// false otherwise, at which point the caller must explicitly match these
// bytes to the browser process by calling this method again with
// |param.origin_pid = 0| and |param.child_id = param.route_id = -1|.
- bool UpdateTasksWithBytesTransferred(const BytesTransferredParam& param);
+ bool UpdateTasksWithBytesTransferred(const BytesTransferredKey& key,
+ const BytesTransferredParam& param);
TaskGroup* GetTaskGroupByTaskId(TaskId task_id) const;
Task* GetTaskByTaskId(TaskId task_id) const;
« no previous file with comments | « no previous file | chrome/browser/task_manager/sampling/task_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698