OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_ORIENTATION_DEVICE_MOTION_SERVICE_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_MOTION_SERVICE_H_ |
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_MOTION_SERVICE_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_MOTION_SERVICE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/shared_memory.h" |
11 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
12 #include "base/shared_memory.h" | |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class DataFetcherSharedMemory; | 18 class DataFetcherSharedMemory; |
19 class DeviceMotionProvider; | 19 class DeviceMotionProvider; |
20 class RenderProcessHost; | 20 class RenderProcessHost; |
21 | 21 |
22 // Owns the DeviceMotionProvider (the background polling thread) and keeps | 22 // Owns the DeviceMotionProvider (the background polling thread) and keeps |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 bool is_shutdown_; | 56 bool is_shutdown_; |
57 scoped_ptr<DeviceMotionProvider> provider_; | 57 scoped_ptr<DeviceMotionProvider> provider_; |
58 base::ThreadChecker thread_checker_; | 58 base::ThreadChecker thread_checker_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(DeviceMotionService); | 60 DISALLOW_COPY_AND_ASSIGN(DeviceMotionService); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_MOTION_SERVICE_H_ | 65 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_MOTION_SERVICE_H_ |
OLD | NEW |