| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ios/web/app/web_main_runner.h" | 5 #include "ios/web/app/web_main_runner.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/i18n/icu_util.h" | 9 #include "base/i18n/icu_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // True if basic startup was completed. | 106 // True if basic startup was completed. |
| 107 bool completed_basic_startup_; | 107 bool completed_basic_startup_; |
| 108 | 108 |
| 109 // The delegate will outlive this object. | 109 // The delegate will outlive this object. |
| 110 WebMainDelegate* delegate_; | 110 WebMainDelegate* delegate_; |
| 111 | 111 |
| 112 // Used if the embedder doesn't set one. | 112 // Used if the embedder doesn't set one. |
| 113 WebClient empty_web_client_; | 113 WebClient empty_web_client_; |
| 114 | 114 |
| 115 scoped_ptr<base::AtExitManager> exit_manager_; | 115 std::unique_ptr<base::AtExitManager> exit_manager_; |
| 116 scoped_ptr<WebMainLoop> main_loop_; | 116 std::unique_ptr<WebMainLoop> main_loop_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(WebMainRunnerImpl); | 118 DISALLOW_COPY_AND_ASSIGN(WebMainRunnerImpl); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 // static | 121 // static |
| 122 WebMainRunner* WebMainRunner::Create() { | 122 WebMainRunner* WebMainRunner::Create() { |
| 123 return new WebMainRunnerImpl(); | 123 return new WebMainRunnerImpl(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace web | 126 } // namespace web |
| OLD | NEW |