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

Unified Diff: content/browser/after_startup_task_poster_impl.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/after_startup_task_poster_impl.h
diff --git a/content/browser/after_startup_task_poster_impl.h b/content/browser/after_startup_task_poster_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..339e559307a8a101fb5a8f0c5a5a83bb3397feeb
--- /dev/null
+++ b/content/browser/after_startup_task_poster_impl.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_AFTER_STARTUP_TASK_POSTER_IMPL_H_
+#define CONTENT_BROWSER_AFTER_STARTUP_TASK_POSTER_IMPL_H_
+
+#include "content/public/browser/after_startup_task_poster.h"
+
+namespace content {
+
+class DefaultAfterStartupTaskPoster : public AfterStartupTaskPoster {
+ public:
+ void PostAfterStartup(
+ const tracked_objects::Location& from_here,
+ const scoped_refptr<base::TaskRunner>& task_runner,
+ const base::Closure& task) override;
+
+ void PostAfterStartupAndReply(
+ const tracked_objects::Location& from_here,
+ const scoped_refptr<base::TaskRunner>& task_runner,
+ const base::Closure& task,
+ const base::Closure& reply) override;
+};
+
+
+AfterStartupTaskPoster& GetAfterStartupTaskPoster();
+void SetAfterStartupTaskPoster(AfterStartupTaskPoster* task_poster);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_AFTER_STARTUP_TASK_POSTER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698