1 // Copyright 2013 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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DEVICE_MOTION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DEVICE_MOTION_MESSAGE_FILTER_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/browser_message_filter.h"
13 class DeviceMotionService;
14 class RenderProcessHost;
16 class DeviceMotionMessageFilter : public BrowserMessageFilter {
18 DeviceMotionMessageFilter();
20 // BrowserMessageFilter implementation.
21 virtual bool OnMessageReceived(const IPC::Message& message,
22 bool* message_was_ok) OVERRIDE;
25 virtual ~DeviceMotionMessageFilter();
27 void OnDeviceMotionStartPolling();
28 void OnDeviceMotionStopPolling();
29 void DidStartDeviceMotionPolling();
33 DISALLOW_COPY_AND_ASSIGN(DeviceMotionMessageFilter);
36 } // namespace content
38 #endif // CONTENT_BROWSER_RENDERER_HOST_DEVICE_MOTION_MESSAGE_FILTER_H_