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/window_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 "mojo/services/tracing/public/cpp/tracing_impl.h" |
16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
17 | 18 |
18 namespace mojo { | 19 namespace mojo { |
19 class View; | 20 class View; |
20 } | 21 } |
21 | 22 |
22 namespace mandoline { | 23 namespace mandoline { |
23 | 24 |
24 class BrowserWindow; | 25 class BrowserWindow; |
25 | 26 |
(...skipping 20 matching lines...) Expand all Loading... |
46 // Overridden from mojo::ApplicationDelegate: | 47 // Overridden from mojo::ApplicationDelegate: |
47 void Initialize(mojo::ApplicationImpl* app) override; | 48 void Initialize(mojo::ApplicationImpl* app) override; |
48 bool ConfigureIncomingConnection( | 49 bool ConfigureIncomingConnection( |
49 mojo::ApplicationConnection* connection) override; | 50 mojo::ApplicationConnection* connection) override; |
50 | 51 |
51 // Overridden from mojo::InterfaceFactory<LaunchHandler>: | 52 // Overridden from mojo::InterfaceFactory<LaunchHandler>: |
52 void Create(mojo::ApplicationConnection* connection, | 53 void Create(mojo::ApplicationConnection* connection, |
53 mojo::InterfaceRequest<LaunchHandler> request) override; | 54 mojo::InterfaceRequest<LaunchHandler> request) override; |
54 | 55 |
55 mojo::ApplicationImpl* app_; | 56 mojo::ApplicationImpl* app_; |
| 57 mojo::TracingImpl tracing_; |
56 mus::mojom::WindowTreeHostFactoryPtr host_factory_; | 58 mus::mojom::WindowTreeHostFactoryPtr host_factory_; |
57 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; | 59 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; |
58 std::set<BrowserWindow*> browsers_; | 60 std::set<BrowserWindow*> browsers_; |
59 const base::TimeTicks startup_ticks_; | 61 const base::TimeTicks startup_ticks_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(BrowserManager); | 63 DISALLOW_COPY_AND_ASSIGN(BrowserManager); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace mandoline | 66 } // namespace mandoline |
65 | 67 |
66 #endif // MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ | 68 #endif // MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_ |
OLD | NEW |