| 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 COMPONENTS_MUS_VIEW_TREE_HOST_CONNECTION_H_ | 5 #ifndef COMPONENTS_MUS_VIEW_TREE_HOST_CONNECTION_H_ |
| 6 #define COMPONENTS_MUS_VIEW_TREE_HOST_CONNECTION_H_ | 6 #define COMPONENTS_MUS_VIEW_TREE_HOST_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/mus/public/interfaces/view_tree_host.mojom.h" | 9 #include "components/mus/public/interfaces/view_tree_host.mojom.h" |
| 10 #include "components/mus/view_tree_host_delegate.h" | 10 #include "components/mus/view_tree_host_delegate.h" |
| 11 #include "components/mus/view_tree_host_impl.h" | 11 #include "components/mus/view_tree_host_impl.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
| 13 | 13 |
| 14 namespace mus { | 14 namespace view_manager { |
| 15 | 15 |
| 16 class ConnectionManager; | 16 class ConnectionManager; |
| 17 class ViewTreeImpl; | 17 class ViewTreeImpl; |
| 18 | 18 |
| 19 // ViewTreeHostConnection is a server-side object that encapsulates the | 19 // ViewTreeHostConnection is a server-side object that encapsulates the |
| 20 // connection between a client of the ViewTreeHost and its implementation. | 20 // connection between a client of the ViewTreeHost and its implementation. |
| 21 // ViewTreeHostConnection also establishes a ClientConnection via the same | 21 // ViewTreeHostConnection also establishes a ClientConnection via the same |
| 22 // code path as embedded views. ConnectionManager manages the lifetime of | 22 // code path as embedded views. ConnectionManager manages the lifetime of |
| 23 // ViewTreeHostConnections. If a connection to the client is lost or if the | 23 // ViewTreeHostConnections. If a connection to the client is lost or if the |
| 24 // associated root is closed, the ViewTreeHostConnection will inform the | 24 // associated root is closed, the ViewTreeHostConnection will inform the |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // ViewTreeHostDelegate: | 71 // ViewTreeHostDelegate: |
| 72 void OnDisplayInitialized() override; | 72 void OnDisplayInitialized() override; |
| 73 | 73 |
| 74 mojo::Binding<mojo::ViewTreeHost> binding_; | 74 mojo::Binding<mojo::ViewTreeHost> binding_; |
| 75 mojo::ViewTreeClientPtr client_; | 75 mojo::ViewTreeClientPtr client_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostConnectionImpl); | 77 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostConnectionImpl); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace mus | 80 } // namespace view_manager |
| 81 | 81 |
| 82 #endif // COMPONENTS_MUS_VIEW_TREE_HOST_CONNECTION_H_ | 82 #endif // COMPONENTS_MUS_VIEW_TREE_HOST_CONNECTION_H_ |
| OLD | NEW |