| 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 #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 Loading... |
| 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; |
| 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 Loading... |
| 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_ |
| OLD | NEW |