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

Side by Side Diff: chrome/browser/task_manager/sampling/task_manager_impl.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 months 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_SAMPLING_TASK_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // content::GpuDataManagerObserver: 100 // content::GpuDataManagerObserver:
101 void OnVideoMemoryUsageStatsUpdate( 101 void OnVideoMemoryUsageStatsUpdate(
102 const gpu::VideoMemoryUsageStats& gpu_memory_stats) override; 102 const gpu::VideoMemoryUsageStats& gpu_memory_stats) override;
103 103
104 // The notification method on the UI thread when multiple bytes are read 104 // The notification method on the UI thread when multiple bytes are read
105 // from URLRequests. This will be called by the |io_thread_helper_| 105 // from URLRequests. This will be called by the |io_thread_helper_|
106 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params); 106 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params);
107 107
108 private: 108 private:
109 friend struct base::DefaultLazyInstanceTraits<TaskManagerImpl>; 109 friend struct base::LazyInstanceTraitsBase<TaskManagerImpl>;
110 110
111 TaskManagerImpl(); 111 TaskManagerImpl();
112 112
113 // task_manager::TaskManagerInterface: 113 // task_manager::TaskManagerInterface:
114 void Refresh() override; 114 void Refresh() override;
115 void StartUpdating() override; 115 void StartUpdating() override;
116 void StopUpdating() override; 116 void StopUpdating() override;
117 117
118 // Lookup a task by its pid, child_id and possibly route_id. 118 // Lookup a task by its pid, child_id and possibly route_id.
119 Task* GetTaskByPidOrRoute(int pid, int child_id, int route_id) const; 119 Task* GetTaskByPidOrRoute(int pid, int child_id, int route_id) const;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // This will be set to true while there are observers and the task manager is 169 // This will be set to true while there are observers and the task manager is
170 // running. 170 // running.
171 bool is_running_; 171 bool is_running_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); 173 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl);
174 }; 174 };
175 175
176 } // namespace task_manager 176 } // namespace task_manager
177 177
178 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ 178 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/logger.cc ('k') | chrome/browser/task_manager/sampling/task_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698