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

Side by Side Diff: content/browser/renderer_host/device_motion_browser_message_filter.h

Issue 14678012: Implement the content/renderer and content/browser part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compilation: peer_handle -> PeerHandle() Created 7 years, 5 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
OLDNEW
(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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698