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 SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_ |
6 #define SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_ | 6 #define SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "mojo/public/cpp/bindings/binding.h" | 9 #include "mojo/public/cpp/bindings/binding.h" |
10 #include "mojo/services/view_manager/public/interfaces/view_manager.mojom.h" | 10 #include "mojo/services/view_manager/interfaces/view_manager.mojom.h" |
11 | 11 |
12 namespace view_manager { | 12 namespace view_manager { |
13 | 13 |
14 class ConnectionManager; | 14 class ConnectionManager; |
15 class ViewManagerServiceImpl; | 15 class ViewManagerServiceImpl; |
16 | 16 |
17 // ClientConnection encapsulates the state needed for a single client connected | 17 // ClientConnection encapsulates the state needed for a single client connected |
18 // to the view manager. | 18 // to the view manager. |
19 class ClientConnection { | 19 class ClientConnection { |
20 public: | 20 public: |
(...skipping 27 matching lines...) Expand all Loading... |
48 ConnectionManager* connection_manager_; | 48 ConnectionManager* connection_manager_; |
49 mojo::Binding<mojo::ViewManagerService> binding_; | 49 mojo::Binding<mojo::ViewManagerService> binding_; |
50 mojo::ViewManagerClientPtr client_; | 50 mojo::ViewManagerClientPtr client_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(DefaultClientConnection); | 52 DISALLOW_COPY_AND_ASSIGN(DefaultClientConnection); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace view_manager | 55 } // namespace view_manager |
56 | 56 |
57 #endif // SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_ | 57 #endif // SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_ |
OLD | NEW |