| OLD | NEW | 
|    1 // Copyright 2015 The Chromium Authors. All rights reserved. |    1 // Copyright 2015 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/sampling/task_manager_impl.h" |    5 #include "chrome/browser/task_manager/sampling/task_manager_impl.h" | 
|    6  |    6  | 
|    7 #include <algorithm> |    7 #include <algorithm> | 
|    8 #include <string> |    8 #include <string> | 
|    9 #include <unordered_map> |    9 #include <unordered_map> | 
|   10 #include <unordered_set> |   10 #include <unordered_set> | 
|   11 #include <vector> |   11 #include <vector> | 
|   12  |   12  | 
|   13 #include "base/containers/adapters.h" |   13 #include "base/containers/adapters.h" | 
 |   14 #include "base/threading/sequenced_worker_pool.h" | 
|   14 #include "build/build_config.h" |   15 #include "build/build_config.h" | 
|   15 #include "chrome/browser/task_manager/providers/browser_process_task_provider.h" |   16 #include "chrome/browser/task_manager/providers/browser_process_task_provider.h" | 
|   16 #include "chrome/browser/task_manager/providers/child_process_task_provider.h" |   17 #include "chrome/browser/task_manager/providers/child_process_task_provider.h" | 
|   17 #include "chrome/browser/task_manager/providers/web_contents/web_contents_task_p
     rovider.h" |   18 #include "chrome/browser/task_manager/providers/web_contents/web_contents_task_p
     rovider.h" | 
|   18 #include "chrome/browser/task_manager/sampling/shared_sampler.h" |   19 #include "chrome/browser/task_manager/sampling/shared_sampler.h" | 
|   19 #include "content/public/browser/browser_thread.h" |   20 #include "content/public/browser/browser_thread.h" | 
|   20 #include "content/public/browser/gpu_data_manager.h" |   21 #include "content/public/browser/gpu_data_manager.h" | 
|   21 #include "content/public/browser/render_frame_host.h" |   22 #include "content/public/browser/render_frame_host.h" | 
|   22 #include "content/public/browser/render_process_host.h" |   23 #include "content/public/browser/render_process_host.h" | 
|   23 #include "content/public/browser/web_contents.h" |   24 #include "content/public/browser/web_contents.h" | 
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  567         groups_itr.second->AreBackgroundCalculationsDone(); |  568         groups_itr.second->AreBackgroundCalculationsDone(); | 
|  568   } |  569   } | 
|  569   if (are_all_processes_data_ready) { |  570   if (are_all_processes_data_ready) { | 
|  570     NotifyObserversOnRefreshWithBackgroundCalculations(GetTaskIdsList()); |  571     NotifyObserversOnRefreshWithBackgroundCalculations(GetTaskIdsList()); | 
|  571     for (const auto& groups_itr : task_groups_by_proc_id_) |  572     for (const auto& groups_itr : task_groups_by_proc_id_) | 
|  572       groups_itr.second->ClearCurrentBackgroundCalculationsFlags(); |  573       groups_itr.second->ClearCurrentBackgroundCalculationsFlags(); | 
|  573   } |  574   } | 
|  574 } |  575 } | 
|  575  |  576  | 
|  576 }  // namespace task_manager |  577 }  // namespace task_manager | 
| OLD | NEW |