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

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

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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) 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_HISTOGRAM_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/public/browser/browser_message_filter.h" 11 #include "content/public/browser/browser_message_filter.h"
12 #include "content/public/common/process_type.h" 12 #include "content/public/common/process_type.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // This class sends and receives histogram messages in the browser process. 16 // This class sends and receives histogram messages in the browser process.
17 class HistogramMessageFilter : public BrowserMessageFilter { 17 class HistogramMessageFilter : public BrowserMessageFilter {
18 public: 18 public:
19 HistogramMessageFilter(); 19 HistogramMessageFilter();
20 20
21 // BrowserMessageFilter implementation. 21 // BrowserMessageFilter implementation.
22 virtual bool OnMessageReceived(const IPC::Message& message, 22 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
23 bool* message_was_ok) OVERRIDE;
24 23
25 private: 24 private:
26 virtual ~HistogramMessageFilter(); 25 virtual ~HistogramMessageFilter();
27 26
28 // Message handlers. 27 // Message handlers.
29 void OnChildHistogramData(int sequence_number, 28 void OnChildHistogramData(int sequence_number,
30 const std::vector<std::string>& pickled_histograms); 29 const std::vector<std::string>& pickled_histograms);
31 void OnGetBrowserHistogram(const std::string& name, 30 void OnGetBrowserHistogram(const std::string& name,
32 std::string* histogram_json); 31 std::string* histogram_json);
33 32
34 DISALLOW_COPY_AND_ASSIGN(HistogramMessageFilter); 33 DISALLOW_COPY_AND_ASSIGN(HistogramMessageFilter);
35 }; 34 };
36 35
37 } // namespace content 36 } // namespace content
38 37
39 #endif // CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_ 38 #endif // CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_message_filter.cc ('k') | content/browser/histogram_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698