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

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

Issue 1922683003: Make old task manager tests work against new task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary friend. Created 4 years, 7 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_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_TASK_MANAGEMENT_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // content::GpuDataManagerObserver: 87 // content::GpuDataManagerObserver:
88 void OnVideoMemoryUsageStatsUpdate( 88 void OnVideoMemoryUsageStatsUpdate(
89 const gpu::VideoMemoryUsageStats& gpu_memory_stats) override; 89 const gpu::VideoMemoryUsageStats& gpu_memory_stats) override;
90 90
91 // The notification method on the UI thread when multiple bytes are read 91 // The notification method on the UI thread when multiple bytes are read
92 // from URLRequests. This will be called by the |io_thread_helper_| 92 // from URLRequests. This will be called by the |io_thread_helper_|
93 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params); 93 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params);
94 94
95 private: 95 private:
96 friend class TaskManagerTester;
afakhry 2016/04/28 00:03:13 It doesn't look like you need this friendship.
ncarter (slow) 2016/05/02 18:33:27 Done.
96 friend struct base::DefaultLazyInstanceTraits<TaskManagerImpl>; 97 friend struct base::DefaultLazyInstanceTraits<TaskManagerImpl>;
97 98
98 TaskManagerImpl(); 99 TaskManagerImpl();
99 100
100 // task_management::TaskManagerInterface: 101 // task_management::TaskManagerInterface:
101 void Refresh() override; 102 void Refresh() override;
102 void StartUpdating() override; 103 void StartUpdating() override;
103 void StopUpdating() override; 104 void StopUpdating() override;
104 105
105 // Based on |param| the appropriate task will be updated by its network usage. 106 // Based on |param| the appropriate task will be updated by its network usage.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // This will be set to true while there are observers and the task manager is 151 // This will be set to true while there are observers and the task manager is
151 // running. 152 // running.
152 bool is_running_; 153 bool is_running_;
153 154
154 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); 155 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl);
155 }; 156 };
156 157
157 } // namespace task_management 158 } // namespace task_management
158 159
159 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 160 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698