Index: content/browser/profiler_message_filter.cc |
=================================================================== |
--- content/browser/profiler_message_filter.cc (revision 0) |
+++ content/browser/profiler_message_filter.cc (revision 0) |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/profiler_message_filter.h" |
+ |
+#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.
|
+#include "base/values.h" |
jam
2011/11/28 15:17:34
ditto
ramant (doing other things)
2011/11/29 01:32:20
Done.
|
+#include "content/common/child_process_messages.h" |
+#include "content/public/browser/profiler_controller.h" |
+ |
+using content::BrowserThread; |
+ |
+ProfilerMessageFilter::ProfilerMessageFilter() { |
+} |
+ |
+ProfilerMessageFilter::~ProfilerMessageFilter() { |
+} |
+ |
+bool ProfilerMessageFilter::OnMessageReceived(const IPC::Message& message, |
+ bool* message_was_ok) { |
+ bool handled = true; |
+ IPC_BEGIN_MESSAGE_MAP_EX(ProfilerMessageFilter, message, *message_was_ok) |
+ IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ChildProfilerData, |
+ OnChildProfilerData) |
+ IPC_MESSAGE_UNHANDLED(handled = false) |
+ IPC_END_MESSAGE_MAP_EX() |
+ return handled; |
+} |
+ |
+void ProfilerMessageFilter::OnChildProfilerData( |
+ int sequence_number, |
+ const base::DictionaryValue& profiler_data) { |
+ content::ProfilerController::GetInstance()->OnProfilerDataCollected( |
+ sequence_number, profiler_data); |
+} |
Property changes on: content\browser\profiler_message_filter.cc |
___________________________________________________________________ |
Added: svn:executable |
+ * |