| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ | 5 #ifndef MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ |
| 6 #define MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ | 6 #define MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "components/mus/public/interfaces/view_tree_host.mojom.h" | 10 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 11 #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" | 11 #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" |
| 12 #include "mojo/application/public/cpp/application_delegate.h" | 12 #include "mojo/application/public/cpp/application_delegate.h" |
| 13 #include "mojo/application/public/cpp/application_impl.h" | 13 #include "mojo/application/public/cpp/application_impl.h" |
| 14 #include "mojo/application/public/cpp/connect.h" | 14 #include "mojo/application/public/cpp/connect.h" |
| 15 #include "mojo/common/weak_binding_set.h" | 15 #include "mojo/common/weak_binding_set.h" |
| 16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 17 | 17 |
| 18 namespace mojo { | 18 namespace mojo { |
| 19 class View; | 19 class View; |
| 20 } | 20 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 46 // Overridden from mojo::ApplicationDelegate: | 46 // Overridden from mojo::ApplicationDelegate: |
| 47 void Initialize(mojo::ApplicationImpl* app) override; | 47 void Initialize(mojo::ApplicationImpl* app) override; |
| 48 bool ConfigureIncomingConnection( | 48 bool ConfigureIncomingConnection( |
| 49 mojo::ApplicationConnection* connection) override; | 49 mojo::ApplicationConnection* connection) override; |
| 50 | 50 |
| 51 // Overridden from mojo::InterfaceFactory<LaunchHandler>: | 51 // Overridden from mojo::InterfaceFactory<LaunchHandler>: |
| 52 void Create(mojo::ApplicationConnection* connection, | 52 void Create(mojo::ApplicationConnection* connection, |
| 53 mojo::InterfaceRequest<LaunchHandler> request) override; | 53 mojo::InterfaceRequest<LaunchHandler> request) override; |
| 54 | 54 |
| 55 mojo::ApplicationImpl* app_; | 55 mojo::ApplicationImpl* app_; |
| 56 mojo::ViewTreeHostFactoryPtr host_factory_; | 56 mus::mojom::WindowTreeHostFactoryPtr host_factory_; |
| 57 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; | 57 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; |
| 58 std::set<BrowserWindow*> browsers_; | 58 std::set<BrowserWindow*> browsers_; |
| 59 base::Time startup_time_; | 59 base::Time startup_time_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(BrowserManager); | 61 DISALLOW_COPY_AND_ASSIGN(BrowserManager); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace mandoline | 64 } // namespace mandoline |
| 65 | 65 |
| 66 #endif // MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ | 66 #endif // MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ |
| OLD | NEW |