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_runner.h" | 5 #include "ios/web/public/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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/metrics/statistics_recorder.h" | 12 #include "base/metrics/statistics_recorder.h" |
13 #include "ios/web/app/web_main_loop.h" | 13 #include "ios/web/app/web_main_loop.h" |
14 #include "ios/web/public/url_schemes.h" | 14 #include "ios/web/public/url_schemes.h" |
15 #include "ios/web/public/web_client.h" | 15 #import "ios/web/public/web_client.h" |
16 #include "ui/base/ui_base_paths.h" | 16 #include "ui/base/ui_base_paths.h" |
17 | 17 |
18 #if !defined(__has_feature) || !__has_feature(objc_arc) | 18 #if !defined(__has_feature) || !__has_feature(objc_arc) |
19 #error "This file requires ARC support." | 19 #error "This file requires ARC support." |
20 #endif | 20 #endif |
21 | 21 |
22 namespace web { | 22 namespace web { |
23 | 23 |
24 class WebMainRunnerImpl : public WebMainRunner { | 24 class WebMainRunnerImpl : public WebMainRunner { |
25 public: | 25 public: |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(WebMainRunnerImpl); | 122 DISALLOW_COPY_AND_ASSIGN(WebMainRunnerImpl); |
123 }; | 123 }; |
124 | 124 |
125 // static | 125 // static |
126 WebMainRunner* WebMainRunner::Create() { | 126 WebMainRunner* WebMainRunner::Create() { |
127 return new WebMainRunnerImpl(); | 127 return new WebMainRunnerImpl(); |
128 } | 128 } |
129 | 129 |
130 } // namespace web | 130 } // namespace web |
OLD | NEW |