Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: components/arc/arc_bridge_bootstrap.cc

Issue 1548833002: arc-bridge: Restart ARC instance on crash (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/arc/arc_bridge_service.h » ('j') | components/arc/arc_bridge_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698