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

Side by Side Diff: chrome/browser/task_management/task_manager_interface.h

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_TASK_MANAGER_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ 6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <utility>
10 11
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/observer_list.h" 14 #include "base/observer_list.h"
14 #include "base/process/process_handle.h" 15 #include "base/process/process_handle.h"
15 #include "base/time/time.h" 16 #include "base/time/time.h"
16 #include "base/timer/timer.h" 17 #include "base/timer/timer.h"
17 #include "chrome/browser/task_management/providers/task.h" 18 #include "chrome/browser/task_management/providers/task.h"
18 #include "chrome/browser/task_management/task_manager_observer.h" 19 #include "chrome/browser/task_management/task_manager_observer.h"
19 #include "third_party/WebKit/public/web/WebCache.h" 20 #include "third_party/WebKit/public/web/WebCache.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual void StartUpdating() = 0; 177 virtual void StartUpdating() = 0;
177 virtual void StopUpdating() = 0; 178 virtual void StopUpdating() = 0;
178 179
179 // Returns the current refresh time that this task manager is running at. It 180 // Returns the current refresh time that this task manager is running at. It
180 // will return base::TimeDelta::Max() if the task manager is not running. 181 // will return base::TimeDelta::Max() if the task manager is not running.
181 base::TimeDelta GetCurrentRefreshTime() const; 182 base::TimeDelta GetCurrentRefreshTime() const;
182 183
183 int64_t enabled_resources_flags() const { return enabled_resources_flags_; } 184 int64_t enabled_resources_flags() const { return enabled_resources_flags_; }
184 185
185 void set_timer_for_testing(scoped_ptr<base::Timer> timer) { 186 void set_timer_for_testing(scoped_ptr<base::Timer> timer) {
186 refresh_timer_ = timer.Pass(); 187 refresh_timer_ = std::move(timer);
187 } 188 }
188 189
189 private: 190 private:
190 friend class TaskManagerObserver; 191 friend class TaskManagerObserver;
191 192
192 // This should be called after each time an observer changes its own desired 193 // This should be called after each time an observer changes its own desired
193 // resources refresh flags. 194 // resources refresh flags.
194 void RecalculateRefreshFlags(); 195 void RecalculateRefreshFlags();
195 196
196 // Appends |flags| to the |enabled_resources_flags_|. 197 // Appends |flags| to the |enabled_resources_flags_|.
(...skipping 14 matching lines...) Expand all
211 212
212 // The flags containing the enabled resources types calculations. 213 // The flags containing the enabled resources types calculations.
213 int64_t enabled_resources_flags_; 214 int64_t enabled_resources_flags_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); 216 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface);
216 }; 217 };
217 218
218 } // namespace task_management 219 } // namespace task_management
219 220
220 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ 221 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698