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

Unified Diff: content/public/browser/browser_main_runner.h

Issue 19957002: Run the later parts of startup as UI thread tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Run the later parts of startup as UI thread tasks - patch for Yaron's comments Created 7 years, 5 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/public/browser/browser_main_runner.h
diff --git a/content/public/browser/browser_main_runner.h b/content/public/browser/browser_main_runner.h
index 4340687796ec32a4c939cfd00ce8ba9b276202d4..1bb25fd73a3114d8402ec1594abcb12938b4f725 100644
--- a/content/public/browser/browser_main_runner.h
+++ b/content/public/browser/browser_main_runner.h
@@ -6,11 +6,13 @@
#define CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_RUNNER_H_
#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
namespace content {
struct MainFunctionParams;
+class StartupTaskRunner;
// This class is responsible for browser initialization, running and shutdown.
class CONTENT_EXPORT BrowserMainRunner {
@@ -22,7 +24,9 @@ class CONTENT_EXPORT BrowserMainRunner {
// Initialize all necessary browser state. The |parameters| values will be
// copied.
- virtual int Initialize(const content::MainFunctionParams& parameters) = 0;
+ virtual int Initialize(
+ const content::MainFunctionParams& parameters,
+ const scoped_refptr<StartupTaskRunner>& task_runner) = 0;
// Perform the default run logic.
virtual int Run() = 0;

Powered by Google App Engine
This is Rietveld 408576698