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

Side by Side Diff: content/browser/device_sensors/sensor_manager_android.h

Issue 2452083002: [Device Sensors] Remove BrowserThread knowledge (Closed)
Patch Set: Created 4 years, 1 month 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
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 CONTENT_BROWSER_DEVICE_SENSORS_SENSOR_MANAGER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_SENSOR_MANAGER_ANDROID_H_
6 #define CONTENT_BROWSER_DEVICE_SENSORS_SENSOR_MANAGER_ANDROID_H_ 6 #define CONTENT_BROWSER_DEVICE_SENSORS_SENSOR_MANAGER_ANDROID_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/threading/thread_checker.h"
13 #include "content/browser/device_sensors/device_sensors_consts.h" 14 #include "content/browser/device_sensors/device_sensors_consts.h"
14 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
15 #include "device/sensors/public/cpp/device_light_hardware_buffer.h" 16 #include "device/sensors/public/cpp/device_light_hardware_buffer.h"
16 #include "device/sensors/public/cpp/device_motion_hardware_buffer.h" 17 #include "device/sensors/public/cpp/device_motion_hardware_buffer.h"
17 #include "device/sensors/public/cpp/device_orientation_hardware_buffer.h" 18 #include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
18 19
19 namespace base { 20 namespace base {
20 template <typename T> 21 template <typename T>
21 struct DefaultSingletonTraits; 22 struct DefaultSingletonTraits;
22 } 23 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool motion_buffer_initialized_; 141 bool motion_buffer_initialized_;
141 bool orientation_buffer_initialized_; 142 bool orientation_buffer_initialized_;
142 bool orientation_absolute_buffer_initialized_; 143 bool orientation_absolute_buffer_initialized_;
143 144
144 base::Lock light_buffer_lock_; 145 base::Lock light_buffer_lock_;
145 base::Lock motion_buffer_lock_; 146 base::Lock motion_buffer_lock_;
146 base::Lock orientation_buffer_lock_; 147 base::Lock orientation_buffer_lock_;
147 base::Lock orientation_absolute_buffer_lock_; 148 base::Lock orientation_absolute_buffer_lock_;
148 149
149 bool is_shutdown_; 150 bool is_shutdown_;
151 base::ThreadChecker thread_checker_;
timvolodine 2016/10/31 15:52:47 maybe add a comment that this class should live on
blundell 2016/11/09 16:00:46 It's present on the GetInstance() declaration abov
150 152
151 DISALLOW_COPY_AND_ASSIGN(SensorManagerAndroid); 153 DISALLOW_COPY_AND_ASSIGN(SensorManagerAndroid);
152 }; 154 };
153 155
154 } // namespace content 156 } // namespace content
155 157
156 #endif // CONTENT_BROWSER_DEVICE_SENSORS_SENSOR_MANAGER_ANDROID_H_ 158 #endif // CONTENT_BROWSER_DEVICE_SENSORS_SENSOR_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698