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

Side by Side Diff: chrome/browser/task_manager/providers/arc/arc_process_task_provider.h

Issue 2441563002: arc: Create intermediate directories in c/b/c/arc (Closed)
Patch Set: Re-rebase to ToT Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_TASK_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_TASK_PROVIDER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_TASK_PROVIDER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_TASK_PROVIDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/process/process.h" 15 #include "base/process/process.h"
16 #include "chrome/browser/chromeos/arc/arc_process.h" 16 #include "chrome/browser/chromeos/arc/process/arc_process.h"
17 #include "chrome/browser/task_manager/providers/arc/arc_process_task.h" 17 #include "chrome/browser/task_manager/providers/arc/arc_process_task.h"
18 #include "chrome/browser/task_manager/providers/task_provider.h" 18 #include "chrome/browser/task_manager/providers/task_provider.h"
19 19
20 namespace task_manager { 20 namespace task_manager {
21 21
22 // This provides the ARC process tasks. 22 // This provides the ARC process tasks.
23 // 23 //
24 // Since this provider obtains ARC process information via IPC and procfs, 24 // Since this provider obtains ARC process information via IPC and procfs,
25 // it can never avoid race conditions. For example, in an extreme case such as 25 // it can never avoid race conditions. For example, in an extreme case such as
26 // fork(2) is called millions of times in a second, this provider can return 26 // fork(2) is called millions of times in a second, this provider can return
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Always keep this the last member of this class to make sure it's the 68 // Always keep this the last member of this class to make sure it's the
69 // first thing to be destructed. 69 // first thing to be destructed.
70 base::WeakPtrFactory<ArcProcessTaskProvider> weak_ptr_factory_; 70 base::WeakPtrFactory<ArcProcessTaskProvider> weak_ptr_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(ArcProcessTaskProvider); 72 DISALLOW_COPY_AND_ASSIGN(ArcProcessTaskProvider);
73 }; 73 };
74 74
75 } // namespace task_manager 75 } // namespace task_manager
76 76
77 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_TASK_PROVIDER_H _ 77 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_TASK_PROVIDER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698