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.
5 #ifndef MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_
6 #define MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_
8 #include "base/macros.h"
9 #include "mojo/application/public/cpp/application_delegate.h"
10 #include "mojo/application/public/cpp/interface_factory.h"
13 class ApplicationConnection
;
14 class ApplicationImpl
;
21 class UpdaterApp
: public mojo::ApplicationDelegate
,
22 public mojo::InterfaceFactory
<Updater
> {
25 ~UpdaterApp() override
;
27 void Initialize(mojo::ApplicationImpl
* app
) override
;
29 // mojo::ApplicationDelegate:
30 bool ConfigureIncomingConnection(
31 mojo::ApplicationConnection
* connection
) override
;
33 // InterfaceFactory<Updater> implementation.
34 void Create(mojo::ApplicationConnection
* connection
,
35 mojo::InterfaceRequest
<Updater
> request
) override
;
38 mojo::ApplicationImpl
* app_impl_
;
40 DISALLOW_COPY_AND_ASSIGN(UpdaterApp
);
43 } // namespace updater
45 #endif // MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_