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

Side by Side Diff: services/nacl/nonsfi/content_handler_main_nexe.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 "mojo/application/content_handler_factory.h" 9 #include "mojo/application/content_handler_factory.h"
10 #include "mojo/data_pipe_utils/data_pipe_utils.h" 10 #include "mojo/data_pipe_utils/data_pipe_utils.h"
11 #include "mojo/environment/scoped_chromium_init.h"
11 #include "mojo/message_pump/message_pump_mojo.h" 12 #include "mojo/message_pump/message_pump_mojo.h"
12 #include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h" 13 #include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h"
13 #include "mojo/public/c/system/main.h" 14 #include "mojo/public/c/system/main.h"
14 #include "mojo/public/cpp/application/application_impl_base.h" 15 #include "mojo/public/cpp/application/application_impl_base.h"
15 #include "mojo/public/cpp/application/run_application.h" 16 #include "mojo/public/cpp/application/run_application.h"
16 17
17 namespace nacl { 18 namespace nacl {
18 namespace content_handler { 19 namespace content_handler {
19 20
20 class NaClContentHandler : public mojo::ApplicationImplBase, 21 class NaClContentHandler : public mojo::ApplicationImplBase,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 MojoLaunchNexeNonsfi(fd, handle, false /* enable_translation_irt */); 55 MojoLaunchNexeNonsfi(fd, handle, false /* enable_translation_irt */);
55 } 56 }
56 57
57 DISALLOW_COPY_AND_ASSIGN(NaClContentHandler); 58 DISALLOW_COPY_AND_ASSIGN(NaClContentHandler);
58 }; 59 };
59 60
60 } // namespace content_handler 61 } // namespace content_handler
61 } // namespace nacl 62 } // namespace nacl
62 63
63 MojoResult MojoMain(MojoHandle application_request) { 64 MojoResult MojoMain(MojoHandle application_request) {
65 mojo::ScopedChromiumInit init;
64 nacl::content_handler::NaClContentHandler nacl_content_handler; 66 nacl::content_handler::NaClContentHandler nacl_content_handler;
65 return mojo::RunMainApplication(application_request, &nacl_content_handler); 67 return mojo::RunApplication(application_request, &nacl_content_handler);
66 } 68 }
OLDNEW
« no previous file with comments | « services/media/audio/audio_server_app.cc ('k') | services/nacl/nonsfi/content_handler_main_pexe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698