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

Side by Side Diff: src/platform/metrics/network_states.h

Issue 1799001: Log time between network drops -- from online to offline. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: address review comments. Created 10 years, 8 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 | « src/platform/metrics/metrics_daemon.cc ('k') | src/platform/metrics/power_states.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 (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 // A table of network states, to be included when building tabular things. 5 // A table of network states, to be included when building tabular things.
6 // 6 //
7 // This file is used to construct two things: an enumerated type in 7 // This file is used to construct two things: an enumerated type in
8 // metrics_daemon.h, and a table of structures with state names in 8 // metrics_daemon.h, and a table of structures with state names in
9 // metrics_daemon.cc. Including this file ensures that the two tables are 9 // metrics_daemon.cc. Including this file ensures that the two tables are
10 // always in sync (and saves typing). I don't know of other ways of achieving 10 // always in sync (and saves typing). I don't know of other ways of achieving
11 // the same result in C/C++, but it doesn't mean there isn't one. 11 // the same result in C/C++, but it doesn't mean there isn't one.
12 12
13 // Before you include this file, define STATE to do something useful, or else 13 // Before you include this file, define STATE to do something useful, or else
14 // if will be a no-op. STATE will be undefined on exit. Don't worry about 14 // if will be a no-op. STATE will be undefined on exit. Don't worry about
15 // collisions for the STATE macro (as long as it's a macro) because the 15 // collisions for the STATE macro (as long as it's a macro) because the
16 // compiler will flag them---in that case, just change the name. If someone is 16 // compiler will flag them---in that case, just change the name. If someone is
17 // misguided enough to use STATE for something other than a macro, the error 17 // misguided enough to use STATE for something other than a macro, the error
18 // messages will be slightly more complicated. 18 // messages will be slightly more complicated.
19 19
20 20
21 #ifndef STATE 21 #ifndef STATE
22 #define STATE(name, capname) 22 #define STATE(name, capname)
23 #endif 23 #endif
24 24
25 STATE(association, Association)
26 STATE(configuration, Configuration)
27 STATE(disconnect, Disconnect)
28 STATE(failure, Failure)
29 STATE(idle, Idle)
30 STATE(offline, Offline) 25 STATE(offline, Offline)
31 STATE(online, Online) 26 STATE(online, Online)
32 STATE(ready, Ready)
33 27
34 #undef STATE 28 #undef STATE
OLDNEW
« no previous file with comments | « src/platform/metrics/metrics_daemon.cc ('k') | src/platform/metrics/power_states.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698