| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_VIEW_MANAGER_CLIENT_CONNECTION_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_ |
| 6 #define COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_ | 6 #define COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/view_manager/public/interfaces/view_manager.mojom.h" |
| 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" | 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" |
| 11 #include "third_party/mojo_services/src/view_manager/public/interfaces/view_mana
ger.mojom.h" | |
| 12 | 12 |
| 13 namespace view_manager { | 13 namespace view_manager { |
| 14 | 14 |
| 15 class ConnectionManager; | 15 class ConnectionManager; |
| 16 class ViewManagerServiceImpl; | 16 class ViewManagerServiceImpl; |
| 17 | 17 |
| 18 // ClientConnection encapsulates the state needed for a single client connected | 18 // ClientConnection encapsulates the state needed for a single client connected |
| 19 // to the view manager. | 19 // to the view manager. |
| 20 class ClientConnection { | 20 class ClientConnection { |
| 21 public: | 21 public: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 ConnectionManager* connection_manager_; | 53 ConnectionManager* connection_manager_; |
| 54 mojo::Binding<mojo::ViewManagerService> binding_; | 54 mojo::Binding<mojo::ViewManagerService> binding_; |
| 55 mojo::ViewManagerClientPtr client_; | 55 mojo::ViewManagerClientPtr client_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(DefaultClientConnection); | 57 DISALLOW_COPY_AND_ASSIGN(DefaultClientConnection); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace view_manager | 60 } // namespace view_manager |
| 61 | 61 |
| 62 #endif // COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_ | 62 #endif // COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_ |
| OLD | NEW |