diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 14:49:26 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 14:49:26 +0000 |
commit | 0615b6f5682896d3109349f1857839731e87e672 (patch) | |
tree | 2b16d769e31582be6b2acb7552687166656d842b /chrome/common/histogram_synchronizer.h | |
parent | da4b92fee136f90425c3400c2fe11469972178cf (diff) | |
download | chromium_src-0615b6f5682896d3109349f1857839731e87e672.zip chromium_src-0615b6f5682896d3109349f1857839731e87e672.tar.gz chromium_src-0615b6f5682896d3109349f1857839731e87e672.tar.bz2 |
Remove RenderProcessHost::size(). With Pawel's change, size() isn't necessarily
correct, and it was badly named and needed fixing anyway.
This patch just removes it. There were a few debugging places that used it
which I just removed, since I think they're old and haven't been useful lately.
The non-trivial changes were in the histogram code, it now counts them slightly
differently.
Review URL: http://codereview.chromium.org/171051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/histogram_synchronizer.h')
-rw-r--r-- | chrome/common/histogram_synchronizer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/common/histogram_synchronizer.h b/chrome/common/histogram_synchronizer.h index e50002f..8756265 100644 --- a/chrome/common/histogram_synchronizer.h +++ b/chrome/common/histogram_synchronizer.h @@ -75,10 +75,13 @@ class HistogramSynchronizer : public // Calls the callback task, if there is a callback_task. void CallCallbackTaskAndResetData(); - // Method to get a new sequence number to be sent to renderers from broswer - // process. - int GetNextAvaibleSequenceNumber(RendererHistogramRequester requster, - size_t renderer_histograms_requested); + // Gets a new sequence number to be sent to renderers from broswer process. + // This will also reset the current pending renderers for the given type. + int GetNextAvaibleSequenceNumber(RendererHistogramRequester requster); + + // Increments the count of the renderers we're waiting for for the request + // of the given type. + void IncrementPendingRenderers(RendererHistogramRequester requester); // For use ONLY in a DCHECK. This method initializes io_message_loop_ in its // first call and then compares io_message_loop_ with MessageLoop::current() |