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

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

Issue 2687393004: Gather stability prefs into managing objects. (Closed)
Patch Set: Remove unused method Created 3 years, 10 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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_ 8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_
9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ 9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_
10 10
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // Prepares the initial metrics log, which includes startup histograms and 329 // Prepares the initial metrics log, which includes startup histograms and
330 // profiler data, as well as incremental stability-related metrics. 330 // profiler data, as well as incremental stability-related metrics.
331 void PrepareInitialMetricsLog(); 331 void PrepareInitialMetricsLog();
332 332
333 // Uploads the currently staged log (which must be non-null). 333 // Uploads the currently staged log (which must be non-null).
334 void SendStagedLog(); 334 void SendStagedLog();
335 335
336 // Called after transmission completes (either successfully or with failure). 336 // Called after transmission completes (either successfully or with failure).
337 void OnLogUploadComplete(int response_code); 337 void OnLogUploadComplete(int response_code);
338 338
339 // Reads, increments and then sets the specified integer preference.
340 void IncrementPrefValue(const char* path);
341
342 // Reads, increments and then sets the specified long preference that is 339 // Reads, increments and then sets the specified long preference that is
343 // stored as a string. 340 // stored as a string.
344 void IncrementLongPrefsValue(const char* path); 341 void IncrementLongPrefsValue(const char* path);
345 342
346 // Records that the browser was shut down cleanly. 343 // Records that the browser was shut down cleanly.
347 void LogCleanShutdown(bool end_completed); 344 void LogCleanShutdown(bool end_completed);
348 345
349 // Notifies observers on a synthetic trial list change. 346 // Notifies observers on a synthetic trial list change.
350 void NotifySyntheticTrialObservers(); 347 void NotifySyntheticTrialObservers();
351 348
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // Weak pointers factory used to post task on different threads. All weak 460 // Weak pointers factory used to post task on different threads. All weak
464 // pointers managed by this factory have the same lifetime as MetricsService. 461 // pointers managed by this factory have the same lifetime as MetricsService.
465 base::WeakPtrFactory<MetricsService> self_ptr_factory_; 462 base::WeakPtrFactory<MetricsService> self_ptr_factory_;
466 463
467 DISALLOW_COPY_AND_ASSIGN(MetricsService); 464 DISALLOW_COPY_AND_ASSIGN(MetricsService);
468 }; 465 };
469 466
470 } // namespace metrics 467 } // namespace metrics
471 468
472 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ 469 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698