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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_
6 #define CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_
13 // Objects interested in receiving histograms derive from HistogramSubscriber.
14 class HistogramSubscriber
{
16 virtual ~HistogramSubscriber() {}
18 // Send number of pending processes to subscriber. |end| is set to true if it
19 // is the last time. This is called on the UI thread.
20 virtual void OnPendingProcesses(int sequence_number
,
21 int pending_processes
,
24 // Send |histogram| back to subscriber.
25 // This is called on the UI thread.
26 virtual void OnHistogramDataCollected(
28 const std::vector
<std::string
>& pickled_histograms
) = 0;
31 } // namespace content
33 #endif // CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_