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

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 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 "content/browser/browser_message_filter.h"
11
12 namespace base {
13 class DictionaryValue;
14 }
15
16 // This class sends and receives profiler messages in the browser process.
17 class ProfilerMessageFilter : public BrowserMessageFilter {
18 public:
19 ProfilerMessageFilter();
20 virtual ~ProfilerMessageFilter();
21
22 // BrowserMessageFilter implementation.
23 virtual void OnChannelConnected(int32 peer_pid);
24
25 // BrowserMessageFilter implementation.
26 virtual bool OnMessageReceived(const IPC::Message& message,
27 bool* message_was_ok);
28
29 private:
30 // Message handlers. It calls ProfilerControllerImpl's OnProfilerDataCollected
jam 2011/11/30 00:22:25 don't comment on what the function is doing. anyon
ramant (doing other things) 2011/11/30 19:37:21 Done.
31 // to send the profiler_data.
32 void OnChildProfilerData(int sequence_number,
33 const base::DictionaryValue& profiler_data);
34
35 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter);
36 };
37
38 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698