| Index: content/browser/startup_task_runner.h
|
| diff --git a/content/browser/startup_task_runner.h b/content/browser/startup_task_runner.h
|
| index 5f954edc8879cc2731cb13038dc35a663809843b..c9aa8d60428d05507844c54bedc078f756337d6c 100644
|
| --- a/content/browser/startup_task_runner.h
|
| +++ b/content/browser/startup_task_runner.h
|
| @@ -32,30 +32,31 @@ typedef base::Callback<int(void)> StartupTask;
|
| // no opportunity to handle UI events between the tasks of a
|
| // SingleThreadedTaskRunner.
|
|
|
| -class CONTENT_EXPORT StartupTaskRunner
|
| - : public base::RefCounted<StartupTaskRunner> {
|
| +class StartupTaskRunner {
|
|
|
| public:
|
| // Constructor: Note that |startup_complete_callback| is optional. If it is
|
| // not null it will be called once all the startup tasks have run.
|
| - StartupTaskRunner(bool browser_may_start_asynchronously,
|
| - base::Callback<void(int)> startup_complete_callback,
|
| + StartupTaskRunner(base::Callback<void(int)> startup_complete_callback,
|
| scoped_refptr<base::SingleThreadTaskRunner> proxy);
|
|
|
| + ~StartupTaskRunner();
|
| +
|
| // Add a task to the queue of startup tasks to be run.
|
| - virtual void AddTask(StartupTask& callback);
|
| + void AddTask(StartupTask& callback);
|
| +
|
| + // Start running the tasks asynchronously.
|
| + void StartRunningTasksAsync();
|
|
|
| - // Start running the tasks.
|
| - virtual void StartRunningTasks();
|
| + // Run all tasks, or all remaining tasks, synchronously
|
| + void RunAllTasksNow();
|
|
|
| private:
|
| friend class base::RefCounted<StartupTaskRunner>;
|
| - virtual ~StartupTaskRunner();
|
|
|
| std::list<StartupTask> task_list_;
|
| void WrappedTask();
|
|
|
| - const bool asynchronous_startup_;
|
| base::Callback<void(int)> startup_complete_callback_;
|
| scoped_refptr<base::SingleThreadTaskRunner> proxy_;
|
|
|
|
|