| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_STARTUP_TASK_RUNNER_H_ | 5 #ifndef CONTENT_BROWSER_STARTUP_TASK_RUNNER_H_ |
| 6 #define CONTENT_BROWSER_STARTUP_TASK_RUNNER_H_ | 6 #define CONTENT_BROWSER_STARTUP_TASK_RUNNER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 12 | 13 |
| 13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 14 | 15 |
| 15 #include "content/public/browser/browser_main_runner.h" | 16 #include "content/public/browser/browser_main_runner.h" |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 | 19 |
| 19 // A startup task is a void function returning the status on completion. | 20 // A startup task is a void function returning the status on completion. |
| 20 // a status of > 0 indicates a failure, and that no further startup tasks should | 21 // a status of > 0 indicates a failure, and that no further startup tasks should |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void WrappedTask(); | 58 void WrappedTask(); |
| 58 | 59 |
| 59 base::Callback<void(int)> startup_complete_callback_; | 60 base::Callback<void(int)> startup_complete_callback_; |
| 60 scoped_refptr<base::SingleThreadTaskRunner> proxy_; | 61 scoped_refptr<base::SingleThreadTaskRunner> proxy_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(StartupTaskRunner); | 63 DISALLOW_COPY_AND_ASSIGN(StartupTaskRunner); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace content | 66 } // namespace content |
| 66 #endif // CONTENT_BROWSER_STARTUP_TASK_RUNNER_H_ | 67 #endif // CONTENT_BROWSER_STARTUP_TASK_RUNNER_H_ |
| OLD | NEW |