| 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_UI_OMNIBOX_OMNIBOX_APPLICATION_H_ | |
| 6 #define MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "mandoline/ui/desktop_ui/public/interfaces/omnibox.mojom.h" | |
| 10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | |
| 11 #include "mojo/shell/public/cpp/interface_factory.h" | |
| 12 #include "mojo/shell/public/cpp/shell_client.h" | |
| 13 | |
| 14 namespace mojo { | |
| 15 class Shell; | |
| 16 } | |
| 17 | |
| 18 namespace mandoline { | |
| 19 | |
| 20 class OmniboxApplication : public mojo::ShellClient, | |
| 21 public mojo::InterfaceFactory<Omnibox> { | |
| 22 public: | |
| 23 OmniboxApplication(); | |
| 24 ~OmniboxApplication() override; | |
| 25 | |
| 26 private: | |
| 27 // Overridden from 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 // Overridden from mojo::InterfaceFactory<Omnibox>: | |
| 33 void Create(mojo::Connection* connection, | |
| 34 mojo::InterfaceRequest<Omnibox> request) override; | |
| 35 | |
| 36 mojo::Shell* shell_; | |
| 37 mojo::TracingImpl tracing_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(OmniboxApplication); | |
| 40 }; | |
| 41 | |
| 42 } // namespace mandoline | |
| 43 | |
| 44 #endif // MANDOLINE_UI_OMNIBOX_OMNIBOX_APPLICATION_H_ | |
| OLD | NEW |