OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "mojo/application/application_runner_chromium.h" | 9 #include "mojo/application/application_runner_chromium.h" |
10 #include "mojo/application/content_handler_factory.h" | 10 #include "mojo/application/content_handler_factory.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 base::FilePath irt_path_; | 167 base::FilePath irt_path_; |
168 | 168 |
169 mojo::URLLoaderPtr url_loader_; | 169 mojo::URLLoaderPtr url_loader_; |
170 | 170 |
171 DISALLOW_COPY_AND_ASSIGN(NaClContentHandler); | 171 DISALLOW_COPY_AND_ASSIGN(NaClContentHandler); |
172 }; | 172 }; |
173 | 173 |
174 } // namespace content_handler | 174 } // namespace content_handler |
175 } // namespace nacl | 175 } // namespace nacl |
176 | 176 |
177 MojoResult MojoMain(MojoHandle shell_handle) { | 177 MojoResult MojoMain(MojoHandle application_request) { |
178 mojo::ApplicationRunnerChromium runner( | 178 mojo::ApplicationRunnerChromium runner( |
179 new nacl::content_handler::NaClContentHandler()); | 179 new nacl::content_handler::NaClContentHandler()); |
180 return runner.Run(shell_handle); | 180 return runner.Run(application_request); |
181 } | 181 } |
OLD | NEW |