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

Side by Side Diff: content/public/browser/after_startup_task_poster.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.
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 CONTENT_PUBLIC_BROWSER_AFTER_STARTUP_TASK_POSTER_H_
6 #define CONTENT_PUBLIC_BROWSER_AFTER_STARTUP_TASK_POSTER_H_
7
8 #include "base/bind.h"
9 #include "base/location.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/task_runner.h"
12 #include "content/common/content_export.h"
13
14 namespace content {
15
16 class CONTENT_EXPORT AfterStartupTaskPoster {
17 public:
18 virtual void PostAfterStartup(
19 const tracked_objects::Location& from_here,
20 const scoped_refptr<base::TaskRunner>& task_runner,
21 const base::Closure& task) = 0;
22
23 virtual void PostAfterStartupAndReply(
24 const tracked_objects::Location& from_here,
25 const scoped_refptr<base::TaskRunner>& task_runner,
26 const base::Closure& task,
27 const base::Closure& reply) = 0;
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_PUBLIC_BROWSER_AFTER_STARTUP_TASK_POSTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698