| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 COMPONENTS_METRICS_CHROMEOS_SERIALIZATION_UTILS_H_ | 5 #ifndef COMPONENTS_METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_ |
| 6 #define COMPONENTS_METRICS_CHROMEOS_SERIALIZATION_UTILS_H_ | 6 #define COMPONENTS_METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 | 12 |
| 13 namespace metrics { | 13 namespace metrics { |
| 14 | 14 |
| 15 class MetricSample; | 15 class MetricSample; |
| 16 | 16 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 // NB: the file will never leave the device so message_size will be written | 38 // NB: the file will never leave the device so message_size will be written |
| 39 // with the architecture's endianness. | 39 // with the architecture's endianness. |
| 40 bool WriteMetricToFile(const MetricSample& sample, const std::string& filename); | 40 bool WriteMetricToFile(const MetricSample& sample, const std::string& filename); |
| 41 | 41 |
| 42 // Maximum length of a serialized message | 42 // Maximum length of a serialized message |
| 43 static const int kMessageMaxLength = 1024; | 43 static const int kMessageMaxLength = 1024; |
| 44 | 44 |
| 45 } // namespace SerializationUtils | 45 } // namespace SerializationUtils |
| 46 } // namespace metrics | 46 } // namespace metrics |
| 47 | 47 |
| 48 #endif // COMPONENTS_METRICS_CHROMEOS_SERIALIZATION_UTILS_H_ | 48 #endif // COMPONENTS_METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_ |
| OLD | NEW |