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

Side by Side 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 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 #ifndef CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
7
8 #include <string>
9
10 #include "base/process.h"
11 #include "content/common/child_process_info.h"
12 #include "content/browser/browser_message_filter.h"
13
14 // 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.
15 // See also: child_profiler_message_filter.h
16 class ProfilerMessageFilter : public BrowserMessageFilter {
17 public:
18 ProfilerMessageFilter();
19 virtual ~ProfilerMessageFilter();
20
21 // BrowserMessageFilter implementation.
22 virtual bool OnMessageReceived(const IPC::Message& message,
23 bool* message_was_ok);
24
25 private:
26 // Message handlers.
27 void OnChildProfilerData(int sequence_number,
28 const std::string& profiler_data);
29 void OnIsProfilerEnabled(base::ProcessId child_process_id);
30
31 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter);
32 };
33
34 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698