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

Unified Diff: content/browser/profiler_message_filter.h

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/profiler_message_filter.h
===================================================================
--- content/browser/profiler_message_filter.h (revision 0)
+++ content/browser/profiler_message_filter.h (revision 0)
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
+#define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
+
+#include <string>
+
+#include "base/process.h"
+#include "content/common/child_process_info.h"
+#include "content/browser/browser_message_filter.h"
+
+// This class sends and receives profiler messages on the browser process.
jam 2011/11/19 23:36:25 nit: in the browser process
ramant (doing other things) 2011/11/25 23:59:48 Done.
+// See also: child_profiler_message_filter.h
+class ProfilerMessageFilter : public BrowserMessageFilter {
+ public:
+ ProfilerMessageFilter();
+ virtual ~ProfilerMessageFilter();
+
+ // BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok);
+
+ private:
+ // Message handlers.
+ void OnChildProfilerData(int sequence_number,
+ const std::string& profiler_data);
+ void OnIsProfilerEnabled(base::ProcessId child_process_id);
+
+ DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter);
+};
+
+#endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
+
Property changes on: content\browser\profiler_message_filter.h
___________________________________________________________________
Added: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698