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

Unified Diff: chrome/browser/metrics/metrics_service.h

Issue 113473: Automatically adapt to faster/slower uploads of renderer histograms... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.h
===================================================================
--- chrome/browser/metrics/metrics_service.h (revision 17103)
+++ chrome/browser/metrics/metrics_service.h (working copy)
@@ -25,6 +25,7 @@
class BookmarkModel;
class BookmarkNode;
+class HistogramSynchronizer;
class PrefService;
class Profile;
class TemplateURLModel;
@@ -187,9 +188,15 @@
// Start timer for next log transmission.
void StartLogTransmissionTimer();
- // Do not call TryToStartTransmission() directly.
+
+ // Internal function to collect process memory information.
+ void LogTransmissionTimerDone();
+
+ // Do not call OnMemoryDetailCollectionDone() or
+ // OnHistogramSynchronizationDone() directly.
// Use StartLogTransmissionTimer() to schedule a call.
- void TryToStartTransmission();
+ void OnMemoryDetailCollectionDone();
+ void OnHistogramSynchronizationDone();
// Takes whatever log should be uploaded next (according to the state_)
// and makes it the pending log. If pending_log_ is not NULL,
@@ -201,9 +208,6 @@
// TryToStartTransmission.
bool TransmissionPermitted() const;
- // Internal function to collect process memory information.
- void CollectMemoryDetails();
-
// Check to see if there is a log that needs to be, or is being, transmitted.
bool pending_log() const {
return pending_log_ || !pending_log_text_.empty();
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698