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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "components/html_viewer/html_document.h" | 12 #include "components/html_viewer/html_document.h" |
13 #include "components/html_viewer/setup.h" | 13 #include "components/html_viewer/setup.h" |
14 #include "mojo/application/application_runner_chromium.h" | 14 #include "mojo/application/application_runner_chromium.h" |
| 15 #include "mojo/application/public/cpp/application_connection.h" |
| 16 #include "mojo/application/public/cpp/application_delegate.h" |
| 17 #include "mojo/application/public/cpp/application_impl.h" |
| 18 #include "mojo/application/public/cpp/connect.h" |
| 19 #include "mojo/application/public/cpp/interface_factory_impl.h" |
15 #include "mojo/common/common_type_converters.h" | 20 #include "mojo/common/common_type_converters.h" |
16 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 21 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
17 #include "third_party/WebKit/public/web/WebKit.h" | 22 #include "third_party/WebKit/public/web/WebKit.h" |
18 #include "third_party/mojo/src/mojo/public/c/system/main.h" | 23 #include "third_party/mojo/src/mojo/public/c/system/main.h" |
19 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio
n.h" | |
20 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate.
h" | |
21 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" | |
22 #include "third_party/mojo/src/mojo/public/cpp/application/connect.h" | |
23 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory_imp
l.h" | |
24 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 24 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" |
25 #include "third_party/mojo_services/src/content_handler/public/interfaces/conten
t_handler.mojom.h" | 25 #include "third_party/mojo_services/src/content_handler/public/interfaces/conten
t_handler.mojom.h" |
26 | 26 |
27 using mojo::ApplicationConnection; | 27 using mojo::ApplicationConnection; |
28 using mojo::Array; | 28 using mojo::Array; |
29 using mojo::BindToRequest; | 29 using mojo::BindToRequest; |
30 using mojo::ContentHandler; | 30 using mojo::ContentHandler; |
31 using mojo::InterfaceRequest; | 31 using mojo::InterfaceRequest; |
32 using mojo::ServiceProvider; | 32 using mojo::ServiceProvider; |
33 using mojo::ServiceProviderPtr; | 33 using mojo::ServiceProviderPtr; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(HTMLViewer); | 160 DISALLOW_COPY_AND_ASSIGN(HTMLViewer); |
161 }; | 161 }; |
162 | 162 |
163 } // namespace html_viewer | 163 } // namespace html_viewer |
164 | 164 |
165 MojoResult MojoMain(MojoHandle shell_handle) { | 165 MojoResult MojoMain(MojoHandle shell_handle) { |
166 mojo::ApplicationRunnerChromium runner(new html_viewer::HTMLViewer); | 166 mojo::ApplicationRunnerChromium runner(new html_viewer::HTMLViewer); |
167 return runner.Run(shell_handle); | 167 return runner.Run(shell_handle); |
168 } | 168 } |
OLD | NEW |