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

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: Addressed more feedback Created 4 years, 11 months 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
« no previous file with comments | « no previous file | components/arc/arc_bridge_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // READY 50 // READY
51 // 51 //
52 // When Stop() is called from any state, either because an operation 52 // When Stop() is called from any state, either because an operation
53 // resulted in an error or because the user is logging out: 53 // resulted in an error or because the user is logging out:
54 // 54 //
55 // (any) 55 // (any)
56 // Stop() -> 56 // Stop() ->
57 // STOPPING 57 // STOPPING
58 // StopInstance() -> 58 // StopInstance() ->
59 // STOPPED 59 // STOPPED
60 //
61 // When the instance crashes while it was ready, it will be stopped:
62 // READY -> STOPPING -> STOPPED
63 // and then restarted:
64 // STOPPED -> SOCKET_CREATING -> ... -> READY).
60 enum class State { 65 enum class State {
61 // ARC is not currently running. 66 // ARC is not currently running.
62 STOPPED, 67 STOPPED,
63 68
64 // An UNIX socket is being created. 69 // An UNIX socket is being created.
65 SOCKET_CREATING, 70 SOCKET_CREATING,
66 71
67 // The request to start the instance has been sent. 72 // The request to start the instance has been sent.
68 STARTING, 73 STARTING,
69 74
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 285
281 ArcBridgeBootstrap::ArcBridgeBootstrap() {} 286 ArcBridgeBootstrap::ArcBridgeBootstrap() {}
282 ArcBridgeBootstrap::~ArcBridgeBootstrap() {} 287 ArcBridgeBootstrap::~ArcBridgeBootstrap() {}
283 288
284 // static 289 // static
285 scoped_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() { 290 scoped_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() {
286 return make_scoped_ptr(new ArcBridgeBootstrapImpl()); 291 return make_scoped_ptr(new ArcBridgeBootstrapImpl());
287 } 292 }
288 293
289 } // namespace arc 294 } // namespace arc
OLDNEW
« no previous file with comments | « no previous file | components/arc/arc_bridge_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698