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

Side by Side Diff: content/browser/device_sensors/device_orientation_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/public/browser/browser_message_filter.h" 9 #include "content/public/browser/browser_message_filter.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class RenderProcessHost; 13 class RenderProcessHost;
14 14
15 class DeviceOrientationMessageFilter : public BrowserMessageFilter { 15 class DeviceOrientationMessageFilter : public BrowserMessageFilter {
16 public: 16 public:
17 DeviceOrientationMessageFilter(); 17 DeviceOrientationMessageFilter();
18 18
19 // BrowserMessageFilter implementation. 19 // BrowserMessageFilter implementation.
20 virtual bool OnMessageReceived(const IPC::Message& message, 20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
21 bool* message_was_ok) OVERRIDE;
22 21
23 private: 22 private:
24 virtual ~DeviceOrientationMessageFilter(); 23 virtual ~DeviceOrientationMessageFilter();
25 24
26 void OnDeviceOrientationStartPolling(); 25 void OnDeviceOrientationStartPolling();
27 void OnDeviceOrientationStopPolling(); 26 void OnDeviceOrientationStopPolling();
28 void DidStartDeviceOrientationPolling(); 27 void DidStartDeviceOrientationPolling();
29 28
30 bool is_started_; 29 bool is_started_;
31 30
32 DISALLOW_COPY_AND_ASSIGN(DeviceOrientationMessageFilter); 31 DISALLOW_COPY_AND_ASSIGN(DeviceOrientationMessageFilter);
33 }; 32 };
34 33
35 } // namespace content 34 } // namespace content
36 35
37 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_ 36 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698