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

Side by Side Diff: components/metrics/file_metrics_provider.h

Issue 2918533003: Send metrics with embedded system profiles after system startup. (Closed)
Patch Set: load profile from only the first found source Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_FILE_METRICS_PROVIDER_H_ 5 #ifndef COMPONENTS_METRICS_FILE_METRICS_PROVIDER_H_
6 #define COMPONENTS_METRICS_FILE_METRICS_PROVIDER_H_ 6 #define COMPONENTS_METRICS_FILE_METRICS_PROVIDER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Takes a list of sources checked by an external task and determines what 168 // Takes a list of sources checked by an external task and determines what
169 // to do with each. 169 // to do with each.
170 void RecordSourcesChecked(SourceInfoList* checked); 170 void RecordSourcesChecked(SourceInfoList* checked);
171 171
172 // Schedules the deletion of a file in the background using the task-runner. 172 // Schedules the deletion of a file in the background using the task-runner.
173 void DeleteFileAsync(const base::FilePath& path); 173 void DeleteFileAsync(const base::FilePath& path);
174 174
175 // Updates the persistent state information to show a source as being read. 175 // Updates the persistent state information to show a source as being read.
176 void RecordSourceAsRead(SourceInfo* source); 176 void RecordSourceAsRead(SourceInfo* source);
177 177
178 // metrics::MetricsDataProvider: 178 // metrics::MetricsProvider:
179 void OnDidCreateMetricsLog() override; 179 void OnDidCreateMetricsLog() override;
180 bool ProvideStabilitySystemProfile(
181 SystemProfileProto* system_profile_proto) override;
180 bool HasInitialStabilityMetrics() override; 182 bool HasInitialStabilityMetrics() override;
181 void RecordInitialHistogramSnapshots( 183 void RecordInitialHistogramSnapshots(
182 base::HistogramSnapshotManager* snapshot_manager) override; 184 base::HistogramSnapshotManager* snapshot_manager) override;
183 185
184 // base::StatisticsRecorder::HistogramProvider: 186 // base::StatisticsRecorder::HistogramProvider:
185 void MergeHistogramDeltas() override; 187 void MergeHistogramDeltas() override;
186 188
187 // A task-runner capable of performing I/O. 189 // A task-runner capable of performing I/O.
188 scoped_refptr<base::TaskRunner> task_runner_; 190 scoped_refptr<base::TaskRunner> task_runner_;
189 191
(...skipping 13 matching lines...) Expand all
203 205
204 base::ThreadChecker thread_checker_; 206 base::ThreadChecker thread_checker_;
205 base::WeakPtrFactory<FileMetricsProvider> weak_factory_; 207 base::WeakPtrFactory<FileMetricsProvider> weak_factory_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(FileMetricsProvider); 209 DISALLOW_COPY_AND_ASSIGN(FileMetricsProvider);
208 }; 210 };
209 211
210 } // namespace metrics 212 } // namespace metrics
211 213
212 #endif // COMPONENTS_METRICS_FILE_METRICS_PROVIDER_H_ 214 #endif // COMPONENTS_METRICS_FILE_METRICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | components/metrics/file_metrics_provider.cc » ('j') | components/metrics/metrics_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698