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 <dlfcn.h> | 5 #include <dlfcn.h> |
6 #include <python2.7/Python.h> | 6 #include <python2.7/Python.h> |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "mojo/application/application_runner_chromium.h" | 13 #include "mojo/application/application_runner_chromium.h" |
14 #include "mojo/application/content_handler_factory.h" | 14 #include "mojo/application/content_handler_factory.h" |
15 #include "mojo/data_pipe_utils/data_pipe_utils.h" | 15 #include "mojo/data_pipe_utils/data_pipe_utils.h" |
16 #include "mojo/public/c/system/main.h" | 16 #include "mojo/public/c/system/main.h" |
17 #include "mojo/public/cpp/application/application_delegate.h" | 17 #include "mojo/public/cpp/application/application_delegate.h" |
18 #include "mojo/public/cpp/application/application_impl.h" | 18 #include "mojo/public/cpp/application/application_impl.h" |
19 #include "mojo/public/cpp/application/interface_factory_impl.h" | |
20 #include "mojo/public/python/src/common.h" | 19 #include "mojo/public/python/src/common.h" |
21 #include "third_party/zlib/google/zip_reader.h" | 20 #include "third_party/zlib/google/zip_reader.h" |
22 #include "url/gurl.h" | 21 #include "url/gurl.h" |
23 | 22 |
24 char kMojoSystem[] = "mojo_system"; | 23 char kMojoSystem[] = "mojo_system"; |
25 char kMojoSystemImpl[] = "mojo_system_impl"; | 24 char kMojoSystemImpl[] = "mojo_system_impl"; |
26 char kMojoMain[] = "MojoMain"; | 25 char kMojoMain[] = "MojoMain"; |
27 | 26 |
28 extern "C" { | 27 extern "C" { |
29 void initmojo_system(); | 28 void initmojo_system(); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 241 |
243 } // namespace content_handler | 242 } // namespace content_handler |
244 } // namespace python | 243 } // namespace python |
245 } // namespace services | 244 } // namespace services |
246 | 245 |
247 MojoResult MojoMain(MojoHandle application_request) { | 246 MojoResult MojoMain(MojoHandle application_request) { |
248 mojo::ApplicationRunnerChromium runner( | 247 mojo::ApplicationRunnerChromium runner( |
249 new services::python::content_handler::PythonContentHandlerApp()); | 248 new services::python::content_handler::PythonContentHandlerApp()); |
250 return runner.Run(application_request); | 249 return runner.Run(application_request); |
251 } | 250 } |
OLD | NEW |