| 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/providers/arc/arc_process_task_provider.h" | 5 #include "chrome/browser/task_manager/providers/arc/arc_process_task_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/process/process.h" | 16 #include "base/process/process.h" |
| 17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
| 19 #include "chrome/browser/chromeos/arc/arc_process.h" | 19 #include "chrome/browser/chromeos/arc/process/arc_process_service.h" |
| 20 #include "chrome/browser/chromeos/arc/arc_process_service.h" | |
| 21 #include "components/arc/common/process.mojom.h" | 20 #include "components/arc/common/process.mojom.h" |
| 22 | 21 |
| 23 namespace task_manager { | 22 namespace task_manager { |
| 24 | 23 |
| 25 namespace { | 24 namespace { |
| 26 | 25 |
| 27 const int kUpdateAppProcessListDelaySeconds = 1; | 26 const int kUpdateAppProcessListDelaySeconds = 1; |
| 28 const int kUpdateSystemProcessListDelaySeconds = 3; | 27 const int kUpdateSystemProcessListDelaySeconds = 3; |
| 29 | 28 |
| 30 } // namespace | 29 } // namespace |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 156 } |
| 158 | 157 |
| 159 void ArcProcessTaskProvider::ScheduleNextSystemRequest() { | 158 void ArcProcessTaskProvider::ScheduleNextSystemRequest() { |
| 160 ScheduleNextRequest( | 159 ScheduleNextRequest( |
| 161 base::Bind(&ArcProcessTaskProvider::RequestSystemProcessList, | 160 base::Bind(&ArcProcessTaskProvider::RequestSystemProcessList, |
| 162 weak_ptr_factory_.GetWeakPtr()), | 161 weak_ptr_factory_.GetWeakPtr()), |
| 163 kUpdateSystemProcessListDelaySeconds); | 162 kUpdateSystemProcessListDelaySeconds); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } // namespace task_manager | 165 } // namespace task_manager |
| OLD | NEW |