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

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

Issue 1985223003: Factor stuff from ApplicationImpl out to a new class, ApplicationImplBase. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_test_base_no_app_impl
Patch Set: fix android Created 4 years, 7 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 "mojo/application/application_runner_chromium.h" 8 #include "mojo/application/application_runner_chromium.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/message_pump/message_pump_mojo.h" 11 #include "mojo/message_pump/message_pump_mojo.h"
12 #include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h" 12 #include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h"
13 #include "mojo/public/c/system/main.h" 13 #include "mojo/public/c/system/main.h"
14 #include "mojo/public/cpp/application/application_delegate.h"
14 #include "mojo/public/cpp/application/application_impl.h" 15 #include "mojo/public/cpp/application/application_impl.h"
15 16
16 namespace nacl { 17 namespace nacl {
17 namespace content_handler { 18 namespace content_handler {
18 19
19 class NaClContentHandler : public mojo::ApplicationDelegate, 20 class NaClContentHandler : public mojo::ApplicationDelegate,
20 public mojo::ContentHandlerFactory::Delegate { 21 public mojo::ContentHandlerFactory::Delegate {
21 public: 22 public:
22 NaClContentHandler() : content_handler_factory_(this) {} 23 NaClContentHandler() : content_handler_factory_(this) {}
23 24
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 63 };
63 64
64 } // namespace content_handler 65 } // namespace content_handler
65 } // namespace nacl 66 } // namespace nacl
66 67
67 MojoResult MojoMain(MojoHandle application_request) { 68 MojoResult MojoMain(MojoHandle application_request) {
68 mojo::ApplicationRunnerChromium runner( 69 mojo::ApplicationRunnerChromium runner(
69 new nacl::content_handler::NaClContentHandler()); 70 new nacl::content_handler::NaClContentHandler());
70 return runner.Run(application_request); 71 return runner.Run(application_request);
71 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698