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..3e3ad7a52a10fcd460a021057bb87f07bdb84267 |
--- /dev/null |
+++ b/chrome/browser/after_startup_task.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
cmumford
2015/03/27 21:59:58
Nit: No "(c)"
|
+// 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. |
cmumford
2015/03/27 21:59:58
Nit: double space.
michaeln
2015/04/03 19:51:37
Done.
|
+void StartMonitoringStartup(); |
+ |
+// Used to augment the behavior or content::BrowserThread::PostAfterStartupTask |
+// 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_ |