OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DEVICE_MOTION_BROWSER_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_DEVICE_MOTION_BROWSER_MESSAGE_FILTER_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "base/shared_memory.h" |
| 10 #include "content/public/browser/browser_message_filter.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class DeviceMotionService; |
| 15 class RenderProcessHost; |
| 16 |
| 17 class DeviceMotionBrowserMessageFilter : public BrowserMessageFilter { |
| 18 public: |
| 19 DeviceMotionBrowserMessageFilter(); |
| 20 |
| 21 // BrowserMessageFilter implementation. |
| 22 virtual bool OnMessageReceived(const IPC::Message& message, |
| 23 bool* message_was_ok) OVERRIDE; |
| 24 |
| 25 private: |
| 26 virtual ~DeviceMotionBrowserMessageFilter(); |
| 27 |
| 28 void OnDeviceMotionStartPolling(); |
| 29 void OnDeviceMotionStopPolling(); |
| 30 void DidStartDeviceMotionPolling(); |
| 31 |
| 32 bool is_started_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(DeviceMotionBrowserMessageFilter); |
| 35 }; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_BROWSER_RENDERER_HOST_DEVICE_MOTION_BROWSER_MESSAGE_FILTER_H
_ |
OLD | NEW |