OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ | 5 #ifndef CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ |
6 #define CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ | 6 #define CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/observer_list_threadsafe.h" | 10 #include "base/observer_list_threadsafe.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // The task runner to use for blocking tasks. | 91 // The task runner to use for blocking tasks. |
92 scoped_refptr<base::TaskRunner> task_runner_; | 92 scoped_refptr<base::TaskRunner> task_runner_; |
93 | 93 |
94 // The last seen accelerometer data. | 94 // The last seen accelerometer data. |
95 scoped_refptr<AccelerometerUpdate> update_; | 95 scoped_refptr<AccelerometerUpdate> update_; |
96 | 96 |
97 // The accelerometer configuration. | 97 // The accelerometer configuration. |
98 scoped_refptr<Configuration> configuration_; | 98 scoped_refptr<Configuration> configuration_; |
99 | 99 |
100 scoped_refptr<ObserverListThreadSafe<Observer>> observers_; | 100 scoped_refptr<base::ObserverListThreadSafe<Observer>> observers_; |
101 | 101 |
102 base::WeakPtrFactory<AccelerometerReader> weak_factory_; | 102 base::WeakPtrFactory<AccelerometerReader> weak_factory_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(AccelerometerReader); | 104 DISALLOW_COPY_AND_ASSIGN(AccelerometerReader); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace chromeos | 107 } // namespace chromeos |
108 | 108 |
109 #endif // CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ | 109 #endif // CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ |
OLD | NEW |