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

Side by Side Diff: metrics_library.h

Issue 2693001: Cleanup style nits in metrics daemon. (Closed) Base URL: ssh://git@chromiumos-git/metrics.git
Patch Set: Fix more nits from tfarina Created 10 years, 6 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 | « metrics_daemon_test.cc ('k') | metrics_library.cc » ('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) 2010 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 #ifndef METRICS_LIBRARY_H_ 5 #ifndef METRICS_LIBRARY_H_
6 #define METRICS_LIBRARY_H_ 6 #define METRICS_LIBRARY_H_
7 7
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Formats a name/value message for Chrome in |buffer| and returns the 69 // Formats a name/value message for Chrome in |buffer| and returns the
70 // length of the message or a negative value on error. 70 // length of the message or a negative value on error.
71 // 71 //
72 // Message format is: | LENGTH(binary) | NAME | \0 | VALUE | \0 | 72 // Message format is: | LENGTH(binary) | NAME | \0 | VALUE | \0 |
73 // 73 //
74 // The arbitrary |format| argument covers the non-LENGTH portion of the 74 // The arbitrary |format| argument covers the non-LENGTH portion of the
75 // message. The caller is responsible to store the \0 character 75 // message. The caller is responsible to store the \0 character
76 // between NAME and VALUE (e.g. "%s%c%d", name, '\0', value). 76 // between NAME and VALUE (e.g. "%s%c%d", name, '\0', value).
77 int32_t FormatChromeMessage(int32_t buffer_size, char* buffer, 77 int32_t FormatChromeMessage(int32_t buffer_size, char* buffer,
78 const char *format, ...); 78 const char* format, ...);
79 79
80 const char* uma_events_file_; 80 const char* uma_events_file_;
81 }; 81 };
82 82
83 #endif /* METRICS_LIBRARY_H_ */ 83 #endif // METRICS_LIBRARY_H_
OLDNEW
« no previous file with comments | « metrics_daemon_test.cc ('k') | metrics_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698