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_DATA_FETCHER_SHARED_MEMORY_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_ |
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_ |
7 | 7 |
8 #include "content/browser/device_orientation/data_fetcher_shared_memory_base.h" | 8 #include "content/browser/device_orientation/data_fetcher_shared_memory_base.h" |
9 | 9 |
10 #if defined(OS_MACOSX) | |
11 #include "content/common/device_motion_hardware_buffer.h" | |
12 #include "content/common/device_orientation/device_orientation_hardware_buffer.h " | |
13 | |
14 class SuddenMotionSensor; | |
bulach
2013/08/23 16:03:34
scoped_ptr requires the #include to be in rather t
timvolodine
2013/08/23 16:34:55
not true. scoped_ptr appears to work ok with fwd d
bulach
2013/08/23 16:37:36
ops, sorry, you're right :)
it needs the #include
| |
15 #endif | |
16 | |
10 namespace content { | 17 namespace content { |
11 | 18 |
12 class CONTENT_EXPORT DataFetcherSharedMemory | 19 class CONTENT_EXPORT DataFetcherSharedMemory |
13 : public DataFetcherSharedMemoryBase { | 20 : public DataFetcherSharedMemoryBase { |
14 | 21 |
15 public: | 22 public: |
16 DataFetcherSharedMemory(); | 23 DataFetcherSharedMemory(); |
17 virtual ~DataFetcherSharedMemory(); | 24 virtual ~DataFetcherSharedMemory(); |
18 | 25 |
19 private: | 26 private: |
20 | 27 |
21 virtual bool Start(ConsumerType consumer_type) OVERRIDE; | 28 virtual bool Start(ConsumerType consumer_type) OVERRIDE; |
22 virtual bool Stop(ConsumerType consumer_type) OVERRIDE; | 29 virtual bool Stop(ConsumerType consumer_type) OVERRIDE; |
23 | 30 |
31 #if defined(OS_MACOSX) | |
32 virtual void Fetch(unsigned consumer_bitmask) OVERRIDE; | |
33 virtual bool IsPolling() const OVERRIDE; | |
34 | |
35 DeviceMotionHardwareBuffer* motion_buffer_; | |
36 DeviceOrientationHardwareBuffer* orientation_buffer_; | |
37 scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_; | |
38 #endif | |
39 | |
24 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); | 40 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); |
25 }; | 41 }; |
26 | 42 |
27 } // namespace content | 43 } // namespace content |
28 | 44 |
29 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_ | 45 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_ |
OLD | NEW |