OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // The main point of this class is to cache ARC proc nspid<->pid mapping | 5 // The main point of this class is to cache ARC proc nspid<->pid mapping |
6 // globally. Since the calculation is costly, a dedicated worker thread is | 6 // globally. Since the calculation is costly, a dedicated worker thread is |
7 // used. All read/write of its internal data structure (i.e., the mapping) | 7 // used. All read/write of its internal data structure (i.e., the mapping) |
8 // should be on this thread. | 8 // should be on this thread. |
9 | 9 |
10 #include "chrome/browser/chromeos/arc/arc_process_service.h" | 10 #include "chrome/browser/chromeos/arc/process/arc_process_service.h" |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <queue> | 13 #include <queue> |
14 #include <string> | 14 #include <string> |
15 #include <unordered_map> | 15 #include <unordered_map> |
16 #include <unordered_set> | 16 #include <unordered_set> |
17 #include <utility> | 17 #include <utility> |
18 | 18 |
19 #include "base/callback.h" | 19 #include "base/callback.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 scoped_refptr<base::SingleThreadTaskRunner> ArcProcessService::GetTaskRunner() { | 272 scoped_refptr<base::SingleThreadTaskRunner> ArcProcessService::GetTaskRunner() { |
273 return heavy_task_thread_.task_runner(); | 273 return heavy_task_thread_.task_runner(); |
274 } | 274 } |
275 | 275 |
276 inline ArcProcessService::NSPidToPidMap::NSPidToPidMap() {} | 276 inline ArcProcessService::NSPidToPidMap::NSPidToPidMap() {} |
277 | 277 |
278 inline ArcProcessService::NSPidToPidMap::~NSPidToPidMap() {} | 278 inline ArcProcessService::NSPidToPidMap::~NSPidToPidMap() {} |
279 | 279 |
280 } // namespace arc | 280 } // namespace arc |
OLD | NEW |