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_UI_OMNIBOX_OMNIBOX_APPLICATION_H_
6 #define MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_
8 #include "base/macros.h"
9 #include "mandoline/ui/desktop_ui/public/interfaces/omnibox.mojom.h"
10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/interface_factory.h"
14 class ApplicationImpl
;
19 class OmniboxApplication
: public mojo::ApplicationDelegate
,
20 public mojo::InterfaceFactory
<Omnibox
> {
23 ~OmniboxApplication() override
;
26 // Overridden from mojo::ApplicationDelegate:
27 void Initialize(mojo::ApplicationImpl
* app
) override
;
28 bool ConfigureIncomingConnection(
29 mojo::ApplicationConnection
* connection
) override
;
31 // Overridden from mojo::InterfaceFactory<Omnibox>:
32 void Create(mojo::ApplicationConnection
* connection
,
33 mojo::InterfaceRequest
<Omnibox
> request
) override
;
35 mojo::ApplicationImpl
* app_
;
37 DISALLOW_COPY_AND_ASSIGN(OmniboxApplication
);
40 } // namespace mandoline
42 #endif // MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_