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

Side by Side Diff: src/platform/window_manager/metrics_reporter.h

Issue 501116: wm: Update namespace and header define guards. (Closed)
Patch Set: move using directive inside of namespace for consistency Created 11 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 (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef __PLATFORM_WINDOW_MANAGER_METRICS_REPORTER_H__ 5 #ifndef WINDOW_MANAGER_METRICS_REPORTER_H_
6 #define __PLATFORM_WINDOW_MANAGER_METRICS_REPORTER_H__ 6 #define WINDOW_MANAGER_METRICS_REPORTER_H_
7 7
8 #include <glib.h> 8 #include <glib.h>
9 #include <string> 9 #include <string>
10 10
11 namespace chrome_os_pb { 11 namespace chrome_os_pb {
12 class SystemMetrics; 12 class SystemMetrics;
13 } 13 }
14 14
15 namespace chromeos { 15 namespace window_manager {
16 16
17 class LayoutManager; 17 class LayoutManager;
18 class WmIpc; 18 class WmIpc;
19 19
20 // Gathers metrics and attempts to send them to Chrome for reporting. 20 // Gathers metrics and attempts to send them to Chrome for reporting.
21 // 21 //
22 // Currently asks the LayoutManager for any metrics it has been keeping, 22 // Currently asks the LayoutManager for any metrics it has been keeping,
23 // and then uses a WmIpc instance to talk to chrome. Eventually, we want 23 // and then uses a WmIpc instance to talk to chrome. Eventually, we want
24 // to use DBus instead. 24 // to use DBus instead.
25 class MetricsReporter { 25 class MetricsReporter {
(...skipping 15 matching lines...) Expand all
41 // boot scripts. Given the fully-specified path, this method reads in 41 // boot scripts. Given the fully-specified path, this method reads in
42 // the boot time and puts it into the provided protobuffer. 42 // the boot time and puts it into the provided protobuffer.
43 // Returns true on success, false otherwise. 43 // Returns true on success, false otherwise.
44 bool GatherBootTime(const std::string& filename, 44 bool GatherBootTime(const std::string& filename,
45 chrome_os_pb::SystemMetrics *metrics); 45 chrome_os_pb::SystemMetrics *metrics);
46 46
47 LayoutManager *lm_; // does not take ownership. 47 LayoutManager *lm_; // does not take ownership.
48 WmIpc *ipc_; // does not take ownership. 48 WmIpc *ipc_; // does not take ownership.
49 }; 49 };
50 50
51 } // namespace chromeos 51 } // namespace window_manager
52 52
53 #endif // __PLATFORM_WINDOW_MANAGER_METRICS_REPORTER_H__ 53 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698