Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / mandoline / services / updater / updater_app.h
blob45b435c2d830ea14b7470dc10765193884b213d3
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"
12 namespace mojo {
13 class ApplicationConnection;
14 class ApplicationImpl;
15 } // namespace mojo
17 namespace updater {
19 class Updater;
21 class UpdaterApp : public mojo::ApplicationDelegate,
22 public mojo::InterfaceFactory<Updater> {
23 public:
24 UpdaterApp();
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;
37 private:
38 mojo::ApplicationImpl* app_impl_;
40 DISALLOW_COPY_AND_ASSIGN(UpdaterApp);
43 } // namespace updater
45 #endif // MANDOLINE_SERVICES_UPDATER_UPDATER_APP_H_