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

Side by Side Diff: content/common/child_histogram_message_filter.h

Issue 12207058: Connect SparseHistogram with the rest of stats system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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
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_COMMOM_CHILD_HISTOGRAM_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_COMMOM_CHILD_HISTOGRAM_MESSAGE_FILTER_H_
6 #define CONTENT_COMMOM_CHILD_HISTOGRAM_MESSAGE_FILTER_H_ 6 #define CONTENT_COMMOM_CHILD_HISTOGRAM_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 31 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
32 virtual void OnFilterRemoved() OVERRIDE; 32 virtual void OnFilterRemoved() OVERRIDE;
33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
34 34
35 void SendHistograms(int sequence_number); 35 void SendHistograms(int sequence_number);
36 36
37 // HistogramFlattener interface (override) methods. 37 // HistogramFlattener interface (override) methods.
38 virtual void RecordDelta(const base::HistogramBase& histogram, 38 virtual void RecordDelta(const base::HistogramBase& histogram,
39 const base::HistogramSamples& snapshot) OVERRIDE; 39 const base::HistogramSamples& snapshot) OVERRIDE;
40 virtual void InconsistencyDetected( 40 virtual void InconsistencyDetected(
41 base::Histogram::Inconsistencies problem) OVERRIDE; 41 base::HistogramBase::Inconsistency problem) OVERRIDE;
42 virtual void UniqueInconsistencyDetected( 42 virtual void UniqueInconsistencyDetected(
43 base::Histogram::Inconsistencies problem) OVERRIDE; 43 base::HistogramBase::Inconsistency problem) OVERRIDE;
44 virtual void InconsistencyDetectedInLoggedCount(int amount) OVERRIDE; 44 virtual void InconsistencyDetectedInLoggedCount(int amount) OVERRIDE;
45 45
46 private: 46 private:
47 typedef std::vector<std::string> HistogramPickledList; 47 typedef std::vector<std::string> HistogramPickledList;
48 48
49 virtual ~ChildHistogramMessageFilter(); 49 virtual ~ChildHistogramMessageFilter();
50 50
51 // Message handlers. 51 // Message handlers.
52 virtual void OnGetChildHistogramData(int sequence_number); 52 virtual void OnGetChildHistogramData(int sequence_number);
53 53
54 // Extract snapshot data and then send it off the the Browser process. 54 // Extract snapshot data and then send it off the the Browser process.
55 // Send only a delta to what we have already sent. 55 // Send only a delta to what we have already sent.
56 void UploadAllHistograms(int sequence_number); 56 void UploadAllHistograms(int sequence_number);
57 57
58 IPC::Channel* channel_; 58 IPC::Channel* channel_;
59 59
60 // Collection of histograms to send to the browser. 60 // Collection of histograms to send to the browser.
61 HistogramPickledList pickled_histograms_; 61 HistogramPickledList pickled_histograms_;
62 62
63 // |histogram_snapshot_manager_| prepares histogram deltas for transmission. 63 // |histogram_snapshot_manager_| prepares histogram deltas for transmission.
64 base::HistogramSnapshotManager histogram_snapshot_manager_; 64 base::HistogramSnapshotManager histogram_snapshot_manager_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(ChildHistogramMessageFilter); 66 DISALLOW_COPY_AND_ASSIGN(ChildHistogramMessageFilter);
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_COMMOM_CHILD_HISTOGRAM_MESSAGE_FILTER_H_ 71 #endif // CONTENT_COMMOM_CHILD_HISTOGRAM_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/histogram_message_filter.cc ('k') | content/common/child_histogram_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698