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

Side by Side Diff: content/browser/histogram_message_filter.cc

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Property Changes:
Added: svn:eol-style
## -0,0 +1 ##
+LF
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 #include "content/browser/histogram_message_filter.h"
6
7 #include "base/process_util.h"
8 #include "content/browser/histogram_controller_impl.h"
9 #include "content/browser/tcmalloc_internals_request_job.h"
10 #include "content/common/child_process_messages.h"
11
12 namespace content {
13
14 HistogramMessageFilter::HistogramMessageFilter(ProcessType process_type)
15 : process_type_(process_type) {
16 }
17
18 void HistogramMessageFilter::OnChannelConnected(int32 peer_pid) {
19 BrowserMessageFilter::OnChannelConnected(peer_pid);
20 }
21
22 bool HistogramMessageFilter::OnMessageReceived(const IPC::Message& message,
23 bool* message_was_ok) {
24 bool handled = true;
25 IPC_BEGIN_MESSAGE_MAP_EX(HistogramMessageFilter, message, *message_was_ok)
26 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ChildHistogramData,
27 OnChildHistogramData)
28 IPC_MESSAGE_UNHANDLED(handled = false)
29 IPC_END_MESSAGE_MAP_EX()
30 return handled;
31 }
32
33 HistogramMessageFilter::~HistogramMessageFilter() {}
34
35 void HistogramMessageFilter::OnChildHistogramData(
36 int sequence_number,
37 const std::vector<std::string>& pickled_histograms) {
38 HistogramControllerImpl::GetInstance()->OnHistogramDataCollected(
39 sequence_number, pickled_histograms, process_type_);
40 }
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698