| 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_management/providers/arc/arc_process_task_provider
.h" | 5 #include "chrome/browser/task_management/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/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 18 #include "chrome/browser/chromeos/arc/arc_process.h" | 18 #include "chrome/browser/chromeos/arc/arc_process.h" |
| 19 #include "chrome/browser/chromeos/arc/arc_process_service.h" | 19 #include "chrome/browser/chromeos/arc/arc_process_service.h" |
| 20 | 20 |
| 21 namespace task_management { | 21 namespace task_management { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const int kUpdateProcessListDelaySeconds = 1; | 25 const int kUpdateProcessListDelaySeconds = 1; |
| 26 | 26 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // message when the process list changed. As of today, ARC does not send | 110 // message when the process list changed. As of today, ARC does not send |
| 111 // the process list unless we request it by RequestProcessList message. | 111 // the process list unless we request it by RequestProcessList message. |
| 112 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( | 112 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
| 113 FROM_HERE, | 113 FROM_HERE, |
| 114 base::Bind(&ArcProcessTaskProvider::RequestProcessList, | 114 base::Bind(&ArcProcessTaskProvider::RequestProcessList, |
| 115 weak_ptr_factory_.GetWeakPtr()), | 115 weak_ptr_factory_.GetWeakPtr()), |
| 116 base::TimeDelta::FromSeconds(kUpdateProcessListDelaySeconds)); | 116 base::TimeDelta::FromSeconds(kUpdateProcessListDelaySeconds)); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace task_management | 119 } // namespace task_management |
| OLD | NEW |