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_PERSISTED_LOGS_H_ | 5 #ifndef COMPONENTS_METRICS_PERSISTED_LOGS_H_ |
6 #define COMPONENTS_METRICS_PERSISTED_LOGS_H_ | 6 #define COMPONENTS_METRICS_PERSISTED_LOGS_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
13 #include "base/values.h" | 15 #include "base/values.h" |
14 | 16 |
15 class PrefService; | 17 class PrefService; |
16 | 18 |
17 namespace metrics { | 19 namespace metrics { |
18 | 20 |
19 // Maintains a list of unsent logs that are written and restored from disk. | 21 // Maintains a list of unsent logs that are written and restored from disk. |
20 class PersistedLogs { | 22 class PersistedLogs { |
21 public: | 23 public: |
22 // Used to produce a histogram that keeps track of the status of recalling | 24 // Used to produce a histogram that keeps track of the status of recalling |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // The index and type of the log staged for upload. If nothing has been | 134 // The index and type of the log staged for upload. If nothing has been |
133 // staged, the index will be -1. | 135 // staged, the index will be -1. |
134 int staged_log_index_; | 136 int staged_log_index_; |
135 | 137 |
136 DISALLOW_COPY_AND_ASSIGN(PersistedLogs); | 138 DISALLOW_COPY_AND_ASSIGN(PersistedLogs); |
137 }; | 139 }; |
138 | 140 |
139 } // namespace metrics | 141 } // namespace metrics |
140 | 142 |
141 #endif // COMPONENTS_METRICS_PERSISTED_LOGS_H_ | 143 #endif // COMPONENTS_METRICS_PERSISTED_LOGS_H_ |
OLD | NEW |