OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_ | |
6 #define MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "mojo/shell/public/cpp/interface_factory.h" | |
10 #include "mojo/shell/public/cpp/shell_client.h" | |
11 | |
12 namespace mojo { | |
13 class Connection; | |
14 class Shell; | |
15 } // namespace mojo | |
16 | |
17 namespace updater { | |
18 | |
19 class Updater; | |
20 | |
21 class UpdaterApp : public mojo::ShellClient, | |
22 public mojo::InterfaceFactory<Updater> { | |
23 public: | |
24 UpdaterApp(); | |
25 ~UpdaterApp() override; | |
26 | |
27 // mojo::ShellClient: | |
28 void Initialize(mojo::Shell* shell, const std::string& url, | |
29 uint32_t id) override; | |
30 bool AcceptConnection(mojo::Connection* connection) override; | |
31 | |
32 // InterfaceFactory<Updater> implementation. | |
33 void Create(mojo::Connection* connection, | |
34 mojo::InterfaceRequest<Updater> request) override; | |
35 | |
36 private: | |
37 mojo::Shell* shell_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(UpdaterApp); | |
40 }; | |
41 | |
42 } // namespace updater | |
43 | |
44 #endif // MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_ | |
OLD | NEW |