Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: services/nacl/nonsfi/content_handler_main_pexe.cc

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <fcntl.h> 5 #include <fcntl.h>
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/sha1.h" 9 #include "base/sha1.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "mojo/application/content_handler_factory.h" 11 #include "mojo/application/content_handler_factory.h"
12 #include "mojo/data_pipe_utils/data_pipe_utils.h" 12 #include "mojo/data_pipe_utils/data_pipe_utils.h"
13 #include "mojo/environment/scoped_chromium_init.h"
13 #include "mojo/file_utils/file_util.h" 14 #include "mojo/file_utils/file_util.h"
14 #include "mojo/message_pump/message_pump_mojo.h" 15 #include "mojo/message_pump/message_pump_mojo.h"
15 #include "mojo/nacl/nonsfi/file_util.h" 16 #include "mojo/nacl/nonsfi/file_util.h"
16 #include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h" 17 #include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h"
17 #include "mojo/public/c/system/main.h" 18 #include "mojo/public/c/system/main.h"
18 #include "mojo/public/cpp/application/application_impl_base.h" 19 #include "mojo/public/cpp/application/application_impl_base.h"
19 #include "mojo/public/cpp/application/connect.h" 20 #include "mojo/public/cpp/application/connect.h"
20 #include "mojo/public/cpp/application/run_application.h" 21 #include "mojo/public/cpp/application/run_application.h"
21 #include "mojo/public/cpp/bindings/array.h" 22 #include "mojo/public/cpp/bindings/array.h"
22 #include "mojo/public/cpp/bindings/synchronous_interface_ptr.h" 23 #include "mojo/public/cpp/bindings/synchronous_interface_ptr.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 mojo::SynchronousInterfacePtr<mojo::nacl::PexeCompilerInit> compiler_init_; 156 mojo::SynchronousInterfacePtr<mojo::nacl::PexeCompilerInit> compiler_init_;
156 mojo::SynchronousInterfacePtr<mojo::nacl::PexeLinkerInit> linker_init_; 157 mojo::SynchronousInterfacePtr<mojo::nacl::PexeLinkerInit> linker_init_;
157 158
158 DISALLOW_COPY_AND_ASSIGN(PexeContentHandler); 159 DISALLOW_COPY_AND_ASSIGN(PexeContentHandler);
159 }; 160 };
160 161
161 } // namespace content_handler 162 } // namespace content_handler
162 } // namespace nacl 163 } // namespace nacl
163 164
164 MojoResult MojoMain(MojoHandle application_request) { 165 MojoResult MojoMain(MojoHandle application_request) {
166 mojo::ScopedChromiumInit init;
165 nacl::content_handler::PexeContentHandler pexe_content_handler; 167 nacl::content_handler::PexeContentHandler pexe_content_handler;
166 return mojo::RunMainApplication(application_request, &pexe_content_handler); 168 return mojo::RunApplication(application_request, &pexe_content_handler);
167 } 169 }
OLDNEW
« no previous file with comments | « services/nacl/nonsfi/content_handler_main_nexe.cc ('k') | services/nacl/nonsfi/pnacl_compile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698