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

Side by Side Diff: content/browser/histogram_subscriber.h

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/histogram_message_filter.cc ('k') | content/browser/histogram_synchronizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_
6 #define CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace content {
12
13 // Objects interested in receiving histograms derive from HistogramSubscriber.
14 class HistogramSubscriber {
15 public:
16 virtual ~HistogramSubscriber() {}
17
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;
23
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;
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_BROWSER_HISTOGRAM_SUBSCRIBER_H_
OLDNEW
« no previous file with comments | « content/browser/histogram_message_filter.cc ('k') | content/browser/histogram_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698