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 "mandoline/services/updater/updater_app.h" | 5 #include "mandoline/services/updater/updater_app.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "mandoline/services/updater/updater_impl.h" | 10 #include "mandoline/services/updater/updater_impl.h" |
11 #include "mojo/application/public/cpp/application_connection.h" | |
12 #include "mojo/application/public/cpp/application_impl.h" | |
13 #include "mojo/application/public/cpp/application_runner.h" | |
14 #include "mojo/public/c/system/main.h" | 11 #include "mojo/public/c/system/main.h" |
| 12 #include "mojo/shell/public/cpp/application_connection.h" |
| 13 #include "mojo/shell/public/cpp/application_impl.h" |
| 14 #include "mojo/shell/public/cpp/application_runner.h" |
15 | 15 |
16 namespace updater { | 16 namespace updater { |
17 | 17 |
18 UpdaterApp::UpdaterApp() : app_impl_(nullptr) { | 18 UpdaterApp::UpdaterApp() : app_impl_(nullptr) { |
19 } | 19 } |
20 | 20 |
21 UpdaterApp::~UpdaterApp() { | 21 UpdaterApp::~UpdaterApp() { |
22 } | 22 } |
23 | 23 |
24 void UpdaterApp::Initialize(mojo::ApplicationImpl* app) { | 24 void UpdaterApp::Initialize(mojo::ApplicationImpl* app) { |
(...skipping 10 matching lines...) Expand all Loading... |
35 mojo::InterfaceRequest<Updater> request) { | 35 mojo::InterfaceRequest<Updater> request) { |
36 new UpdaterImpl(app_impl_, this, std::move(request)); | 36 new UpdaterImpl(app_impl_, this, std::move(request)); |
37 } | 37 } |
38 | 38 |
39 } // namespace updater | 39 } // namespace updater |
40 | 40 |
41 MojoResult MojoMain(MojoHandle shell_handle) { | 41 MojoResult MojoMain(MojoHandle shell_handle) { |
42 mojo::ApplicationRunner runner(new updater::UpdaterApp); | 42 mojo::ApplicationRunner runner(new updater::UpdaterApp); |
43 return runner.Run(shell_handle); | 43 return runner.Run(shell_handle); |
44 } | 44 } |
OLD | NEW |