Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
gab
2015/03/30 18:29:37
I'd name this file after_startup_task_utils.h or s
michaeln
2015/04/03 19:51:38
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_AFTER_STARTUP_TASK_H_ | |
| 6 #define CHROME_BROWSER_AFTER_STARTUP_TASK_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/bind.h" | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 | |
| 12 namespace base { | |
| 13 class TaskRunner; | |
| 14 } | |
| 15 namespace tracked_objects { | |
| 16 class Location; | |
| 17 }; | |
| 18 | |
| 19 // Observes startup and when complete runs tasks that have accrued. | |
| 20 void StartMonitoringStartup(); | |
| 21 | |
| 22 // Used to augment the behavior or content::BrowserThread::PostAfterStartupTask | |
|
gab
2015/03/30 18:29:37
s/or/of ?
michaeln
2015/04/03 19:51:38
Done.
| |
| 23 // for chrome. Tasks are queued until startup is complete. | |
| 24 // Note: see browser_thread.h | |
| 25 void PostAfterStartupTask(const tracked_objects::Location& from_here, | |
| 26 const scoped_refptr<base::TaskRunner>& task_runner, | |
| 27 const base::Closure& task); | |
| 28 | |
| 29 #endif // CHROME_BROWSER_AFTER_STARTUP_TASK_H_ | |
| OLD | NEW |