diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-31 02:29:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-31 02:29:20 +0000 |
commit | 5e9e96aae1a78860b984124519f720163fc52a33 (patch) | |
tree | d29e8de21b25f313cf93d1c939fc1dd3083b92f4 /content/browser/histogram_synchronizer.h | |
parent | 16efcd1cd7d75552d6ef14632030520d9bb3986c (diff) | |
download | chromium_src-5e9e96aae1a78860b984124519f720163fc52a33.zip chromium_src-5e9e96aae1a78860b984124519f720163fc52a33.tar.gz chromium_src-5e9e96aae1a78860b984124519f720163fc52a33.tar.bz2 |
Move MessageLoop to base namespace.
This adds a "using" to the header to avoid having to update everything at once. However, all forward declares and the locations that use the forward declares need to be updated (since they don't see the using in message_loop.h).
BUG=
Review URL: https://codereview.chromium.org/13243003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/histogram_synchronizer.h')
-rw-r--r-- | content/browser/histogram_synchronizer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/content/browser/histogram_synchronizer.h b/content/browser/histogram_synchronizer.h index 0968abd..0b279a0 100644 --- a/content/browser/histogram_synchronizer.h +++ b/content/browser/histogram_synchronizer.h @@ -15,7 +15,9 @@ #include "base/time.h" #include "content/browser/histogram_subscriber.h" +namespace base { class MessageLoop; +} namespace content { @@ -68,7 +70,7 @@ class HistogramSynchronizer : public HistogramSubscriber { // changes to histograms. When all changes have been acquired, or when the // wait time expires (whichever is sooner), post the callback to the // specified message loop. Note the callback is posted exactly once. - static void FetchHistogramsAsynchronously(MessageLoop* callback_thread, + static void FetchHistogramsAsynchronously(base::MessageLoop* callback_thread, const base::Closure& callback, base::TimeDelta wait_time); @@ -109,13 +111,14 @@ class HistogramSynchronizer : public HistogramSubscriber { // callaback_thread_. This side effect should not generally happen, but is in // place to assure correctness (that any tasks that were set, are eventually // called, and never merely discarded). - void SetCallbackTaskAndThread(MessageLoop* callback_thread, + void SetCallbackTaskAndThread(base::MessageLoop* callback_thread, const base::Closure& callback); void ForceHistogramSynchronizationDoneCallback(int sequence_number); // Internal helper function, to post task, and record callback stats. - void InternalPostTask(MessageLoop* thread, const base::Closure& callback); + void InternalPostTask(base::MessageLoop* thread, + const base::Closure& callback); // Gets a new sequence number to be sent to processes from browser process. int GetNextAvailableSequenceNumber(ProcessHistogramRequester requester); @@ -127,7 +130,7 @@ class HistogramSynchronizer : public HistogramSubscriber { // the task and thread we use to post a completion notification in // callback_ and callback_thread_. base::Closure callback_; - MessageLoop* callback_thread_; + base::MessageLoop* callback_thread_; // We don't track the actual processes that are contacted for an update, only // the count of the number of processes, and we can sometimes time-out and |