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

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

Issue 2567083002: Migrate ArcBridgeService::Observer and ArcSession::Observer. (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « components/arc/arc_session_observer.h ('k') | components/arc/test/fake_arc_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/arc/arc_session_observer.h"
6
7 namespace arc {
8
9 std::ostream& operator<<(std::ostream& os,
10 ArcSessionObserver::StopReason reason) {
11 switch (reason) {
12 #define CASE_IMPL(val) \
13 case ArcSessionObserver::StopReason::val: \
14 return os << #val
15
16 CASE_IMPL(SHUTDOWN);
17 CASE_IMPL(GENERIC_BOOT_FAILURE);
18 CASE_IMPL(LOW_DISK_SPACE);
19 CASE_IMPL(CRASH);
20 #undef CASE_IMPL
21 }
22
23 // In case of unexpected value, output the int value.
24 return os << "StopReason(" << static_cast<int>(reason) << ")";
25 }
26
27 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/arc_session_observer.h ('k') | components/arc/test/fake_arc_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698