| 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_ARC_ARC_BRIDGE_SERVICE_H_ | 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ |
| 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ | 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 protected: | 165 protected: |
| 166 // The possible states of the bridge. In the normal flow, the state changes | 166 // The possible states of the bridge. In the normal flow, the state changes |
| 167 // in the following sequence: | 167 // in the following sequence: |
| 168 // | 168 // |
| 169 // STOPPED | 169 // STOPPED |
| 170 // PrerequisitesChanged() -> | 170 // PrerequisitesChanged() -> |
| 171 // CONNECTING | 171 // CONNECTING |
| 172 // OnConnectionEstablished() -> | 172 // OnConnectionEstablished() -> |
| 173 // READY | 173 // READY |
| 174 // | 174 // |
| 175 // The ArcBridgeBootstrap state machine can be thought of being substates of | 175 // The ArcSession state machine can be thought of being substates of |
| 176 // ArcBridgeService's CONNECTING state. | 176 // ArcBridgeService's CONNECTING state. |
| 177 // | 177 // |
| 178 // * | 178 // * |
| 179 // StopInstance() -> | 179 // StopInstance() -> |
| 180 // STOPPING | 180 // STOPPING |
| 181 // OnStopped() -> | 181 // OnStopped() -> |
| 182 // STOPPED | 182 // STOPPED |
| 183 enum class State { | 183 enum class State { |
| 184 // ARC is not currently running. | 184 // ARC is not currently running. |
| 185 STOPPED, | 185 STOPPED, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); | 264 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 // Defines "<<" operator for LOGging purpose. | 267 // Defines "<<" operator for LOGging purpose. |
| 268 std::ostream& operator<<( | 268 std::ostream& operator<<( |
| 269 std::ostream& os, ArcBridgeService::StopReason reason); | 269 std::ostream& os, ArcBridgeService::StopReason reason); |
| 270 | 270 |
| 271 } // namespace arc | 271 } // namespace arc |
| 272 | 272 |
| 273 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ | 273 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ |
| OLD | NEW |