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 #include "components/arc/arc_bridge_bootstrap.h" | 5 #include "components/arc/arc_bridge_bootstrap.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 // READY | 49 // READY |
50 // | 50 // |
51 // When Stop() is called from any state, either because an operation | 51 // When Stop() is called from any state, either because an operation |
52 // resulted in an error or because the user is logging out: | 52 // resulted in an error or because the user is logging out: |
53 // | 53 // |
54 // (any) | 54 // (any) |
55 // Stop() -> | 55 // Stop() -> |
56 // STOPPING | 56 // STOPPING |
57 // StopInstance() -> | 57 // StopInstance() -> |
58 // STOPPED | 58 // STOPPED |
59 // | |
60 // When the instance crashes, it will be stopped and restarted. | |
hidehiko
2015/12/29 13:27:11
Clarification: In this case, the state would be ch
Luis Héctor Chávez
2015/12/29 17:17:36
Done.
| |
59 enum class State { | 61 enum class State { |
60 // ARC is not currently running. | 62 // ARC is not currently running. |
61 STOPPED, | 63 STOPPED, |
62 | 64 |
63 // An UNIX socket is being created. | 65 // An UNIX socket is being created. |
64 SOCKET_CREATING, | 66 SOCKET_CREATING, |
65 | 67 |
66 // The request to start the instance has been sent. | 68 // The request to start the instance has been sent. |
67 STARTING, | 69 STARTING, |
68 | 70 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
279 | 281 |
280 ArcBridgeBootstrap::ArcBridgeBootstrap() {} | 282 ArcBridgeBootstrap::ArcBridgeBootstrap() {} |
281 ArcBridgeBootstrap::~ArcBridgeBootstrap() {} | 283 ArcBridgeBootstrap::~ArcBridgeBootstrap() {} |
282 | 284 |
283 // static | 285 // static |
284 scoped_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() { | 286 scoped_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() { |
285 return make_scoped_ptr(new ArcBridgeBootstrapImpl()); | 287 return make_scoped_ptr(new ArcBridgeBootstrapImpl()); |
286 } | 288 } |
287 | 289 |
288 } // namespace arc | 290 } // namespace arc |
OLD | NEW |