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

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

Issue 9702014: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix base_unittests failures Created 8 years, 9 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
11 #include "content/public/common/process_type.h"
11 12
12 namespace base { 13 namespace content {
13 class DictionaryValue; 14
14 } 15 struct SerializedProfilerData;
15 16
16 // This class sends and receives profiler messages in the browser process. 17 // This class sends and receives profiler messages in the browser process.
17 class ProfilerMessageFilter : public content::BrowserMessageFilter { 18 class ProfilerMessageFilter : public BrowserMessageFilter {
18 public: 19 public:
19 ProfilerMessageFilter(); 20 ProfilerMessageFilter();
20 virtual ~ProfilerMessageFilter(); 21 virtual ~ProfilerMessageFilter();
21 22
22 // content::BrowserMessageFilter implementation. 23 // content::BrowserMessageFilter implementation.
23 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 24 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
24 25
25 // content::BrowserMessageFilter implementation. 26 // content::BrowserMessageFilter implementation.
26 virtual bool OnMessageReceived(const IPC::Message& message, 27 virtual bool OnMessageReceived(const IPC::Message& message,
27 bool* message_was_ok) OVERRIDE; 28 bool* message_was_ok) OVERRIDE;
28 29
29 private: 30 private:
30 // Message handlers. 31 // Message handlers.
31 void OnChildProfilerData(int sequence_number, 32 void OnChildProfilerData(int sequence_number,
32 const base::DictionaryValue& profiler_data); 33 const SerializedProfilerData& profiler_data);
33 34
34 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); 35 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter);
35 }; 36 };
36 37
38 } // namespace content
39
37 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ 40 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698