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

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.
cmumford 2015/03/27 21:59:58 Nit: No "(c)"
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.
cmumford 2015/03/27 21:59:58 Nit: double space.
michaeln 2015/04/03 19:51:37 Done.
20 void StartMonitoringStartup();
21
22 // Used to augment the behavior or content::BrowserThread::PostAfterStartupTask
23 // for chrome. Tasks are queued until startup is complete.
24 // Note: see browser_thread.h
25 void PostAfterStartupTask(
26 const tracked_objects::Location& from_here,
27 const scoped_refptr<base::TaskRunner>& task_runner,
28 const base::Closure& task);
29
30 #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