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

Side by Side Diff: components/metrics/serialization/serialization_utils.h

Issue 394093003: Moves components/metrics/chromeos to c/m/serialization/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added os=="linux" GYP guards Created 6 years, 5 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/metrics/serialization/metric_sample.cc ('k') | components/metrics/serialization/serialization_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698