| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |