| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 IOS_WEB_APP_WEB_MAIN_RUNNER_H_ | 5 #ifndef IOS_WEB_APP_WEB_MAIN_RUNNER_H_ |
| 6 #define IOS_WEB_APP_WEB_MAIN_RUNNER_H_ | 6 #define IOS_WEB_APP_WEB_MAIN_RUNNER_H_ |
| 7 | 7 |
| 8 #include "ios/web/public/app/web_main.h" | 8 #include "ios/web/public/app/web_main_runner.h" |
| 9 | 9 |
| 10 namespace web { | 10 // TODO(crbug.com/616247): Remove this file once all clients switched to use |
| 11 | 11 // public header. |
| 12 // This class is responsible for web initialization and shutdown. | |
| 13 class WebMainRunner { | |
| 14 public: | |
| 15 virtual ~WebMainRunner() {} | |
| 16 | |
| 17 // Create a new WebMainRunner object. | |
| 18 static WebMainRunner* Create(); | |
| 19 | |
| 20 // Initialize all necessary web state. | |
| 21 virtual int Initialize(const WebMainParams& params) = 0; | |
| 22 | |
| 23 // Shut down the web state. | |
| 24 virtual void ShutDown() = 0; | |
| 25 }; | |
| 26 | |
| 27 } // namespace web | |
| 28 | 12 |
| 29 #endif // IOS_WEB_APP_WEB_MAIN_RUNNER_H_ | 13 #endif // IOS_WEB_APP_WEB_MAIN_RUNNER_H_ |
| OLD | NEW |