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

Side by Side Diff: content/public/browser/histogram_fetcher.h

Issue 2412903002: Remove MessageLoop::current() from chrome_metrics_service_client.cc (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/browser/histogram_synchronizer.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
6 #define CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_ 6 #define CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/task_runner.h"
9 #include "base/time/time.h" 10 #include "base/time/time.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 12
12 namespace base {
13 class MessageLoop;
14 }
15
16 namespace content { 13 namespace content {
17 14
18 // Fetch histogram data asynchronously from the various child processes, into 15 // Fetch histogram data asynchronously from the various child processes, into
19 // the browser process. This method is used by the metrics services in 16 // the browser process. This method is used by the metrics services in
20 // preparation for a log upload. It contacts all processes, and get them to 17 // preparation for a log upload. It contacts all processes, and get them to
21 // upload to the browser any/all changes to histograms. When all changes have 18 // upload to the browser any/all changes to histograms. When all changes have
22 // been acquired, or when the wait time expires (whichever is sooner), post the 19 // been acquired, or when the wait time expires (whichever is sooner), post the
23 // callback to the specified message loop. Note the callback is posted exactly 20 // callback to the specified TaskRunner. Note the callback is posted exactly
24 // once. 21 // once.
25 CONTENT_EXPORT void FetchHistogramsAsynchronously( 22 CONTENT_EXPORT void FetchHistogramsAsynchronously(
26 base::MessageLoop* callback_thread, 23 scoped_refptr<base::TaskRunner> task_runner,
27 const base::Closure& callback, 24 const base::Closure& callback,
28 base::TimeDelta wait_time); 25 base::TimeDelta wait_time);
29 26
30 } // namespace content 27 } // namespace content
31 28
32 #endif // CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_ 29 #endif // CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
OLDNEW
« no previous file with comments | « content/browser/histogram_synchronizer.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698