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

Side by Side Diff: chrome/browser/after_startup_task.h

Issue 949293002: Implement a poor man's PostAfterStartupTask() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
(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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/after_startup_task.cc » ('j') | chrome/browser/after_startup_task.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698