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

Side by Side Diff: content/browser/device_orientation/device_inertial_sensor_service.h

Issue 152893002: [DeviceLight API] Content Side Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix in Java file, stop() Created 6 years, 8 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
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_INERTIAL_SENSOR_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_INERTIAL_SENSOR_SERVICE_H_
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_INERTIAL_SENSOR_SERVICE_H_ 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_INERTIAL_SENSOR_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"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 private: 51 private:
52 friend struct DefaultSingletonTraits<DeviceInertialSensorService>; 52 friend struct DefaultSingletonTraits<DeviceInertialSensorService>;
53 53
54 DeviceInertialSensorService(); 54 DeviceInertialSensorService();
55 virtual ~DeviceInertialSensorService(); 55 virtual ~DeviceInertialSensorService();
56 56
57 bool ChangeNumberConsumers(ConsumerType consumer_type, 57 bool ChangeNumberConsumers(ConsumerType consumer_type,
58 int delta); 58 int delta);
59 int GetNumberConsumers(ConsumerType consumer_type) const; 59 int GetNumberConsumers(ConsumerType consumer_type) const;
60 60
61 int num_light_readers_;
61 int num_motion_readers_; 62 int num_motion_readers_;
62 int num_orientation_readers_; 63 int num_orientation_readers_;
63 bool is_shutdown_; 64 bool is_shutdown_;
64 scoped_ptr<DataFetcherSharedMemory> data_fetcher_; 65 scoped_ptr<DataFetcherSharedMemory> data_fetcher_;
65 base::ThreadChecker thread_checker_; 66 base::ThreadChecker thread_checker_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(DeviceInertialSensorService); 68 DISALLOW_COPY_AND_ASSIGN(DeviceInertialSensorService);
68 }; 69 };
69 70
70 } // namespace content 71 } // namespace content
71 72
72 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_INERTIAL_SENSOR_SERVICE_H_ 73 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_INERTIAL_SENSOR_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698