Revert of Add DumpAccessibilityEvents test framework. (patchset #7 id:120001 of https...
[chromium-blink-merge.git] / content / browser / histogram_subscriber.h
blob993e4c97c3b8169896523b2c20fd25d481149da0
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_
8 #include <string>
9 #include <vector>
11 namespace content {
13 // Objects interested in receiving histograms derive from HistogramSubscriber.
14 class HistogramSubscriber {
15 public:
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,
22 bool end) = 0;
24 // Send |histogram| back to subscriber.
25 // This is called on the UI thread.
26 virtual void OnHistogramDataCollected(
27 int sequence_number,
28 const std::vector<std::string>& pickled_histograms) = 0;
31 } // namespace content
33 #endif // CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_