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

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

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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:executable
+ *
OLDNEW
(Empty)
1 // Copyright (c) 2011 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/profiler_message_filter.h"
6
7 #include "base/tracked_objects.h"
jam 2011/11/28 15:17:34 not needed?
ramant (doing other things) 2011/11/29 01:32:20 Done.
8 #include "base/values.h"
jam 2011/11/28 15:17:34 ditto
ramant (doing other things) 2011/11/29 01:32:20 Done.
9 #include "content/common/child_process_messages.h"
10 #include "content/public/browser/profiler_controller.h"
11
12 using content::BrowserThread;
13
14 ProfilerMessageFilter::ProfilerMessageFilter() {
15 }
16
17 ProfilerMessageFilter::~ProfilerMessageFilter() {
18 }
19
20 bool ProfilerMessageFilter::OnMessageReceived(const IPC::Message& message,
21 bool* message_was_ok) {
22 bool handled = true;
23 IPC_BEGIN_MESSAGE_MAP_EX(ProfilerMessageFilter, message, *message_was_ok)
24 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ChildProfilerData,
25 OnChildProfilerData)
26 IPC_MESSAGE_UNHANDLED(handled = false)
27 IPC_END_MESSAGE_MAP_EX()
28 return handled;
29 }
30
31 void ProfilerMessageFilter::OnChildProfilerData(
32 int sequence_number,
33 const base::DictionaryValue& profiler_data) {
34 content::ProfilerController::GetInstance()->OnProfilerDataCollected(
35 sequence_number, profiler_data);
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698