| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | |
| 6 #define SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "mojo/common/tracing_impl.h" | |
| 10 #include "mojo/public/cpp/application/application_delegate.h" | |
| 11 #include "services/view_manager/view_manager_root_connection.h" | |
| 12 | |
| 13 namespace view_manager { | |
| 14 | |
| 15 class ViewManagerApp | |
| 16 : public mojo::ApplicationDelegate, | |
| 17 public ViewManagerRootConnection::ViewManagerRootConnectionObserver { | |
| 18 public: | |
| 19 ViewManagerApp(); | |
| 20 ~ViewManagerApp() override; | |
| 21 | |
| 22 private: | |
| 23 // ApplicationDelegate: | |
| 24 void Initialize(mojo::ApplicationImpl* app) override; | |
| 25 bool ConfigureIncomingConnection( | |
| 26 mojo::ApplicationConnection* connection) override; | |
| 27 | |
| 28 // ViewManagerRootConnectionObserver: | |
| 29 void OnCloseViewManagerRootConnection( | |
| 30 ViewManagerRootConnection* view_manager_root_connection) override; | |
| 31 | |
| 32 std::set<ViewManagerRootConnection*> active_root_connections_; | |
| 33 mojo::ApplicationImpl* app_impl_; | |
| 34 mojo::TracingImpl tracing_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); | |
| 37 }; | |
| 38 | |
| 39 } // namespace view_manager | |
| 40 | |
| 41 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | |
| OLD | NEW |