Chromium Code Reviews| Index: chrome/browser/after_startup_task.h |
| diff --git a/chrome/browser/after_startup_task.h b/chrome/browser/after_startup_task.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..436cb13594c0df87ba93dd9ec48e5ddf22d3e228 |
| --- /dev/null |
| +++ b/chrome/browser/after_startup_task.h |
| @@ -0,0 +1,29 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_AFTER_STARTUP_TASK_H_ |
| +#define CHROME_BROWSER_AFTER_STARTUP_TASK_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/bind.h" |
| +#include "base/memory/ref_counted.h" |
| + |
| +namespace base { |
| +class TaskRunner; |
| +} |
| +namespace tracked_objects { |
| +class Location; |
| +}; |
| + |
| +// Observes startup and when complete runs tasks that have accrued. |
| +void StartMonitoringStartup(); |
| + |
| +// 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.
|
| +// for chrome. Tasks are queued until startup is complete. |
| +// Note: see browser_thread.h |
| +void PostAfterStartupTask(const tracked_objects::Location& from_here, |
| + const scoped_refptr<base::TaskRunner>& task_runner, |
| + const base::Closure& task); |
| + |
| +#endif // CHROME_BROWSER_AFTER_STARTUP_TASK_H_ |