| 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/public/app/web_main.h" | 5 #include "ios/web/public/app/web_main.h" |
| 6 #include "ios/web/public/app/web_main_runner.h" | 6 #include "ios/web/public/app/web_main_runner.h" |
| 7 | 7 |
| 8 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 9 #error "This file requires ARC support." |
| 10 #endif |
| 11 |
| 8 namespace web { | 12 namespace web { |
| 9 | 13 |
| 10 WebMain::WebMain(const WebMainParams& params) { | 14 WebMain::WebMain(const WebMainParams& params) { |
| 11 web_main_runner_.reset(WebMainRunner::Create()); | 15 web_main_runner_.reset(WebMainRunner::Create()); |
| 12 web_main_runner_->Initialize(params); | 16 web_main_runner_->Initialize(params); |
| 13 } | 17 } |
| 14 | 18 |
| 15 WebMain::~WebMain() { | 19 WebMain::~WebMain() { |
| 16 web_main_runner_->ShutDown(); | 20 web_main_runner_->ShutDown(); |
| 17 } | 21 } |
| 18 | 22 |
| 19 } // namespace web | 23 } // namespace web |
| OLD | NEW |