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

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

Issue 10068037: RefCounted types should not have public destructors, content/browser part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MSVC fixes Created 8 years, 8 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
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/browser/profiler_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/public/common/process_type.h"
12 12
13 namespace tracked_objects { 13 namespace tracked_objects {
14 struct ProcessDataSnapshot; 14 struct ProcessDataSnapshot;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 // This class sends and receives profiler messages in the browser process. 19 // This class sends and receives profiler messages in the browser process.
20 class ProfilerMessageFilter : public BrowserMessageFilter { 20 class ProfilerMessageFilter : public BrowserMessageFilter {
21 public: 21 public:
22 explicit ProfilerMessageFilter(ProcessType process_type); 22 explicit ProfilerMessageFilter(ProcessType process_type);
23 virtual ~ProfilerMessageFilter();
24 23
25 // content::BrowserMessageFilter implementation. 24 // content::BrowserMessageFilter implementation.
26 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 25 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
27 26
28 // content::BrowserMessageFilter implementation. 27 // content::BrowserMessageFilter implementation.
29 virtual bool OnMessageReceived(const IPC::Message& message, 28 virtual bool OnMessageReceived(const IPC::Message& message,
30 bool* message_was_ok) OVERRIDE; 29 bool* message_was_ok) OVERRIDE;
31 30
31 protected:
32 virtual ~ProfilerMessageFilter();
33
32 private: 34 private:
33 // Message handlers. 35 // Message handlers.
34 void OnChildProfilerData( 36 void OnChildProfilerData(
35 int sequence_number, 37 int sequence_number,
36 const tracked_objects::ProcessDataSnapshot& profiler_data); 38 const tracked_objects::ProcessDataSnapshot& profiler_data);
37 39
38 #if defined(USE_TCMALLOC) 40 #if defined(USE_TCMALLOC)
39 void OnTcmallocStats(const std::string& output); 41 void OnTcmallocStats(const std::string& output);
40 #endif 42 #endif
41 43
42 ProcessType process_type_; 44 ProcessType process_type_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); 46 DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter);
45 }; 47 };
46 48
47 } // namespace content 49 } // namespace content
48 50
49 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ 51 #endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/browser/profiler_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698