| 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "mojo/public/cpp/bindings/remote_ptr.h" | |
| 11 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 10 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 12 | 11 |
| 13 namespace mojo { | 12 namespace mojo { |
| 14 namespace services { | 13 namespace services { |
| 15 namespace view_manager { | 14 namespace view_manager { |
| 16 | 15 |
| 17 class ViewManager; | 16 class ViewManager; |
| 18 class ViewManagerTransaction; | 17 class ViewManagerTransaction; |
| 19 | 18 |
| 20 // Manages the connection with the View Manager service. | 19 // Manages the connection with the View Manager service. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); | 62 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); |
| 64 | 63 |
| 65 ViewManager* view_manager_; | 64 ViewManager* view_manager_; |
| 66 bool connected_; | 65 bool connected_; |
| 67 uint16_t connection_id_; | 66 uint16_t connection_id_; |
| 68 uint16_t next_id_; | 67 uint16_t next_id_; |
| 69 uint32_t next_change_id_; | 68 uint32_t next_change_id_; |
| 70 | 69 |
| 71 Transactions pending_transactions_; | 70 Transactions pending_transactions_; |
| 72 | 71 |
| 73 RemotePtr<IViewManager> service_; | 72 IViewManagerPtr service_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer); | 74 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace view_manager | 77 } // namespace view_manager |
| 79 } // namespace services | 78 } // namespace services |
| 80 } // namespace mojo | 79 } // namespace mojo |
| 81 | 80 |
| 82 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H
_ | 81 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H
_ |
| OLD | NEW |