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_METRICS_LOG_MANAGER_H_ | 5 #ifndef COMPONENTS_METRICS_METRICS_LOG_MANAGER_H_ |
6 #define COMPONENTS_METRICS_METRICS_LOG_MANAGER_H_ | 6 #define COMPONENTS_METRICS_METRICS_LOG_MANAGER_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" | 13 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "components/metrics/metrics_log.h" | 15 #include "components/metrics/metrics_log.h" |
14 #include "components/metrics/persisted_logs.h" | 16 #include "components/metrics/persisted_logs.h" |
15 | 17 |
16 namespace metrics { | 18 namespace metrics { |
17 | 19 |
18 // Manages all the log objects used by a MetricsService implementation. Keeps | 20 // Manages all the log objects used by a MetricsService implementation. Keeps |
19 // track of both an in progress log and a log that is staged for uploading as | 21 // track of both an in progress log and a log that is staged for uploading as |
20 // text, as well as saving logs to, and loading logs from, persistent storage. | 22 // text, as well as saving logs to, and loading logs from, persistent storage. |
21 class MetricsLogManager { | 23 class MetricsLogManager { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Logs that have not yet been sent. | 109 // Logs that have not yet been sent. |
108 PersistedLogs initial_log_queue_; | 110 PersistedLogs initial_log_queue_; |
109 PersistedLogs ongoing_log_queue_; | 111 PersistedLogs ongoing_log_queue_; |
110 | 112 |
111 DISALLOW_COPY_AND_ASSIGN(MetricsLogManager); | 113 DISALLOW_COPY_AND_ASSIGN(MetricsLogManager); |
112 }; | 114 }; |
113 | 115 |
114 } // namespace metrics | 116 } // namespace metrics |
115 | 117 |
116 #endif // COMPONENTS_METRICS_METRICS_LOG_MANAGER_H_ | 118 #endif // COMPONENTS_METRICS_METRICS_LOG_MANAGER_H_ |
OLD | NEW |